After several years maintaining a website you have added a lot of pages, news and blog articles, but you have also removed or moved some to another place at the site. You don't want visitors to get an error 404 page, so you want to redirect them to the current spot.
Not that I am an expert in rewrite rules, but the examples below work for my websites :) I will add more later...
The most common method is:
But when you use Pretty URLs at your CMS Made Simple™ website the redirect 301 method in the .htaccess file might fail...
Try to use one of these rewrite rules instead:
In the default .htaccess file (supplied in the CMSMS™ docs folder), add your custom redirect rules above "Rewrites urls in the form of /parent/child/" or they may not work. For example:
The above examples assume an apache webserver. The file to edit and the syntax will be different for different webservers
You can also use the CMSMS core Internal Page Link to redirect moved pages, or use for creating short URLs:
Created a new "Section Header"
Then for each moved page:
One nice thing about this technique is that all these Internal Page Links can be placed under the "Redirects" parent page where they don't clutter up the primary page hierarchy.
You have a popular blog and want to change the domain name. This way all incoming blog links are redirected to the new domain:
www.website.com/blog/foo will be redirected to www.newwebsite.com/blog/foo
www.website.com/blog/bar will be redirected to www.newwebsite.com/blog/bar
No comments yet...