Forums

mod_rewrite without using the permalink settings? (3 posts)

  1. jeffere312
    Member
    Posted 2 years ago #

    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...

    http://www.theaccessroad.com/?p=412
    needs to turn into...
    http://www.theaccessroad.com/accessroad/?p=412

    I 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.

  2. jeffere312
    Member
    Posted 2 years ago #

    Anyone have any thoughts on this at all? I'm guessing it's pretty simple!

  3. Gray-Adams
    Member
    Posted 2 years ago #

    Change your permalink structure to:
    /index.php/%year%/%monthnum%/%day%/%postname%/

    You probably do not have mod_rewrite enabled (a server thing.)
    Also, if your HTACCESS is not updating, set the CHMOD to 777.

Topic Closed

This topic has been closed to new replies.

About this Topic