mod_rewrite without using the permalink settings?
-
Through a series of stupid mistakes, all of my post URLs have ended up in a different subdirectory than my homepage – and all of the links from the homepage loop nowhere. I just need to make a simple change to my URL structure to fix this problem…
https://www.theaccessroad.com/?p=412
needs to turn into…
https://www.theaccessroad.com/accessroad/?p=412I thought this was something I could do by implementing a custom URL structure on the “permalink settings” page, but this doesn’t seem to be working. (Yes, my .htaccess is getting updated; it just doesn’t work.)
Is there another way I could do this – maybe using mod_rewrite in the .htaccess file myself? What would the code look like?
I’m pulling my hair out! Thanks to anyone who can offer even the smallest bit of feedback.
- The topic ‘mod_rewrite without using the permalink settings?’ is closed to new replies.