This is the documentation for concrete5 version 5.6 and earlier. View Current Documentation

If you need to change the name of a parent page/url in your site, all of its old child page urls will automatically redirect to the new parent page url. By adding a single line of code to your .htaccess file, you can redirect all of those old child urls to the new child urls. This is really helpful for your users who have content bookmarked, and maintaining SEO, etc.

Imagine you currently have: mysite.com/news/article-name/

and want to change it to: mysite.com/latest/article-name/

If you add this single line to your .htaccess file it will redirect those old urls to the correct place:

RewriteRule ^/?news/(.*)$ http://mysite.com/latest/$1 [R,L]

It does need to go in a specific place within the standard Concrete5 Rewrite block, to make it work correctly - see below:

RewriteEngine On
RewriteBase /
RewriteRule ^/?news/(.*)$ http://mysite.com/latest/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
Loading Conversation