Forum Moderators: phranque
www.domain.com/archives/26
I got it back to what it was. I need something to rewrite or redirect this to the right place becasue google got in there and indexed them quite fast.
I can get it to redirect using
Redirect permanent /archives [domain.com...]
All this does is make it www.domain.com/26
How do I add .html to this?
RewriteRule ^archives/([0-9]{2})/?$ http://www.example.com/$1.html [R=301,L]
-or-
RewriteRule ^archives/([0-9]/?$ http://www.example.com/$1.html [R=301,L]
-or-
RewriteRule ^archives/(26)/?$ http://www.example.com/$1.html [R=301,L]
However, if you've got another redirect in your .htaccess that countermands this redirect (resulting in a redirection loop), then we'll need to take it a step further.
Jim