WordPress.org

Support

Support » How-To and Troubleshooting » mod_rewrite breaks site navigation

mod_rewrite breaks site navigation

  • JohnP
    Participant

    @johnp

    In WP1.2.2 I’m using the virtual site structure:
    /%year%/%monthnum%/%day%/%postname%/
    and the RewriteBase is: /weblog/

    My WP generated links seem to be working fine throughout, but on all blog pages EXCEPT the home page (ie: example.com/weblog/index.php), all the relative URLs in the site navigation gain an extra /weblog/ at the begining – instead of example.com/contact.htm I get:
    example.com/weblog/contact.htm

    If I use the calendar to go to the Jan 2005 page it gets worse – the URL becomes: example.com/weblog/2005/contact.htm

    I guess I could work-around this by using absolute URLS in the site nav, but if anyone can tell me how to fix the mod_rewrite rules it would be appreciated.

  • The topic ‘mod_rewrite breaks site navigation’ is closed to new replies.