I used to have my blog at jeremycherfas.net/wp working fine there and at wp.jeremycherfas.net. Then, after an upgrade, it stopped working, but I didn’t notice for an age. So I cannot remember exactly how I had set it up to ensure that both mydomain/wp and wp.mydomain went to the blog page.
I tried a few options but none seemed to work.
Then I followed the instructions at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory and the blog now works fine at jeremycherfas.net, which is OK. But if anyone goes to jeremycherfas.net/wp they get a Not Found. This is because there is still an index.php at jeremycherfas.net/wp but if I simply delete that then people get You do not have permission.
What’s the best way to get jeremycherfas.net/wp to point to jeremycherfas.net? I guess I could make an index.html page that contains just a redirect. But that will not work if someone comes looking for a specific post at jeremycherfas.net/wp/specificpost
I don’t really know enough about htaccess to craft my own redirect under wp
Can someone help with the code I need to ensure that all pages that begin jeremycherfas.net/wp/ are redirected to jeremycherfas.net ?
- The topic ‘Redirect from WordPress directory’ is closed to new replies.