htaccess redirect?
-
i misnamed a post, and want to change it. however google, etc have picked up the old, misnamed post title that is no longer valid.
what do i need to add to htaccess to get the old title to redirect to the new title? this is what i have tried with no luck:
Redirect permanent /archives/2005/07/05/oldname/ https://domain.com/archives/2005/07/05/newname/
when i attempt to go to:
https://domain.com/archives/2005/07/05/oldname/
i get redirected to:
https://domain.com/archives/2005/07/05/newname/?year=2005&monthnum=07&day=05&name=oldname&page=also some strange behaviour i just encountered…when i go to:
https://domain.com//archives/2005/07/05/oldname/
(note the double forward slash)
i get redirected properly.my WP is installed at /wordpress
can anyone shed some light on what i am doing wrong. i realize that the links are ‘permalinks’ which are generated on the fly, so how can i redirect posts? thanks.
- The topic ‘htaccess redirect?’ is closed to new replies.