• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France 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.  [ 2 posts ] 
Author Message
 Post subject: Redirect Removed Pages - where to put your redirection code
PostPosted: Thu Jul 24, 2014 7:03 am 
Offline
Forum Members
Forum Members

Joined: Wed Jan 28, 2009 1:12 am
Posts: 20
Hi,

First up I'm using CMSMS 1.11.10 “Pinzon” as I write this.

I'd like to propose a one line text addition to this docs page (http://docs.cmsmadesimple.org/customizing/redirect-removed-pages) that clarifies exactly where to place your 301 redirect within your sites htaccess file.

In the .htaccess file, I found that placing a redirect just before this stuff...

Code:
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]


Seems to work. Placing it after doesn't. :'( Much time wasted finding this out and I'm sure others must have struck this.

For a real win, perhaps we could also have a new comment added to the htaccess.txt file that ships in the doc directory of CMSMS.

Something along the links of

Code:
# Place your 301 redirections here
# For more information visit http://docs.cmsmadesimple.org/customizing/redirect-removed-pages


This is a very high ranking page when researching the topic of 301 redirecting with CMSMS, so I think it's important. We'd just need some input from developers what to actually say.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Redirect Removed Pages - where to put your redirection c
PostPosted: Wed Aug 13, 2014 4:40 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 694
Location: Victoria, BC
Thanks, documentation has been updated. It probably won't get added to the default htaccess file as it's a bit out of the scope of what we can offer support for, but certainly worth documenting.

_________________
Not getting the answer you need? CMSMS support options


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.  [ 2 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:  
cron
A2 Hosting