Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi there :)

This question is probably not in scope of Couch expertise, but maybe you can help.
I've enabled pretty urls and run gen_htaccess without any visible issues.
What would be the best strategy to 301 redirect old .html pages to new .php?
Couch, of course, correctly shows that page is not found (as .html is searched as an inner couch page of the current template and obviously not found).
Is there any way to complete the task?
Thank you.

PS Maybe do it with META, keeping old files for a while?
Code: Select all
<meta http-equiv="refresh" content="0;url=http://www.site.com/">
hi trendoman, I quite often put in 301 redirects when I make a replacement site for a client. I add a rule like the one shown below in the Couch generated .htaccess file. I use http://www.webconfs.com/htaccess-redirect-generator.php to help get the syntax of the rule correct.


#DO NOT EDIT BELOW THIS
RewriteRule ^index.php$ "" [R=301,L,QSA]

rewriterule ^old-page-name/(.*)$ http://www.site.com/new-page-name/$1 [r=301,nc]

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
@potato,

thank you, will try your suggestion with Pretty Urls :)
I just was searching for the pretty url redirection solution and webconfs link was not working for me.
I found great redirect generator here
4 posts Page 1 of 1