Quick mod_rewrite question
-
I recently started a new site, and I had a change of heart as to permalink structure (I know, I know, their supposed to be *permanent*).
Anyway, there aren’t a whole lot of posts affected by the change, but most of them have been added to google using the old link structure. So… I set up a mod_rewrite redirect in .htaccess:
RewriteRule ^archives/1/first-post-ever/$ https://www.recycledcognition.com/2005/03/22/first-post-ever/ [L]
It works, in that when I go to:
https://www.recycledcognition.com/archives/1/first-post-ever/
I get sent to the right page (which now resides at: /2005/03/22/…)
The problem is that the address bar still shows the old (/archives/1/…) address, rather than the address to which it was redirected. Is there any way to avoid this, and have the address bar display the new url? Thanks,
–recog
- The topic ‘Quick mod_rewrite question’ is closed to new replies.