• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: About 301
PostPosted: Wed Oct 18, 2017 4:11 pm 
Offline
Forum Members
Forum Members

Joined: Mon Dec 05, 2011 4:40 pm
Posts: 61
Location: Voorburg, Nederland
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
Code:
$config['url_rewriting'] = 'mod_rewrite';


In /abc/cmsvoeten/.htaccess I have only these lines for testing
Code:
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]


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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: About 301
PostPosted: Wed Oct 18, 2017 5:05 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7496
Location: The Netherlands
https://www.cmscanbesimple.org/blog/red ... ade-simple

_________________
Image
Latest CMSMS article: Search Form Autocomplete

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: About 301  Topic is solved
PostPosted: Wed Oct 18, 2017 9:08 pm 
Offline
Forum Members
Forum Members

Joined: Mon Dec 05, 2011 4:40 pm
Posts: 61
Location: Voorburg, Nederland
Thanx. It works, this did the job.
Code:
RewriteRule ^producten/informatie$ http://www.lan.home/abc/cmsvoeten/categorie/overzicht [R=301,L]


For some reason /abc/cmsvoeten/dir/page still gives the 404 as mentioned above but all other non-existing urls are redirected as expected.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting