• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

301 redirect using a wildcard to a single page using htaccess

This is an excerpt from my htaccess file. I actually have more 301 redirects but this should suffice for the question. I think the top bit comes automatically from Wordpress, I certainly didn't write it.

Below the wordpress part there are a bunch of 301 redirects. In reality about 25 301s.

Within the 301s I have 3 URLs with /viz/*

Instead of having to redirect every page individually with viz/* in the URL, how do I redirect everything from with /viz* in one line of code? All pages to be redirected to /services/

# The directives (lines) between `BEGIN WordPress` and `END WordPress` are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten.  RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]   # END WordPress  # BEGIN 301 Redirects  Redirect 301 /viz/tapestry-threads /services/ Redirect 301 /viz/evergreen-gates-foundation-financial-challenge /services/ Redirect 301 /viz/tiny-habits-data-structure /services/ Redirect 301 /viz /services/ 
Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]