About 301
Posted: Wed Oct 18, 2017 4:11 pm
Hello, I'm trying to get the 301 working in htaccess.
CMSMS has been setup in Xampp in folder /abc/cmsvoeten
- cmsms 2.2.3.1
- CGExtensions 1.56.2
- CMSMailer 6.2.14
- FormBuilder 0.8.1.6
In /abc/cmsvoeten/config.php I added
In /abc/cmsvoeten/.htaccess I have only these lines for testing
Page /abc/cmsvoeten/dir/page does not exist so there is a 301 redirect to page /abc/cmsvoeten/welcome/us.
For some reason I get a 404 and the new browser url after the redirect is
/abc/cmsvoeten/welcome/us/?page=dir/page
Someone has a hint or solution for this bahavior?
Thanks, Ronald
CMSMS has been setup in Xampp in folder /abc/cmsvoeten
- cmsms 2.2.3.1
- CGExtensions 1.56.2
- CMSMailer 6.2.14
- FormBuilder 0.8.1.6
In /abc/cmsvoeten/config.php I added
Code: Select all
$config['url_rewriting'] = 'mod_rewrite';
Code: Select all
RewriteBase /abc/cmsvoeten
RewriteEngine on
RedirectMatch 301 /abc/cmsvoeten/dir/page(.*) http://www.lan.home/abc/cmsvoeten/welcome/us
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
For some reason I get a 404 and the new browser url after the redirect is
/abc/cmsvoeten/welcome/us/?page=dir/page
Someone has a hint or solution for this bahavior?
Thanks, Ronald