prazim
Member
Posted 5 months ago #
I am modifying my blog so that the url will now be mysite.com/permalink rather than mysite.com/wordpress/permalink
I have a large number of existing posts so need to implement a rewrite rule to ensure that anyone who clicks a link somewhere for the old uri will be redirected automatically to its new location.
I understand this needs to go in my htaccess file but need to confirm the syntax.
many thanks,
Sue
Do a search on Google for:
htaccess redirect 301 directory
You will have to write much of the actual code yourself for your specific pages/permalinks. Or else just redirect the directory to your new Home page in WP.
prazim
Member
Posted 5 months ago #
many thanks. did the search you suggested and found the solution:
this is what I needed, and it works:
RedirectPermanent /foo http://foobar.com/foo
should anyone come across this thread.
Sue