Forums

Folder-based navigation (4 posts)

  1. Nick Momrik
    Member
    Posted 9 years ago #

    The reason archives did not work is because /archives/ is taken over by the rewrite rules and wordpress. So creating a folder named archives will never get accessed because the rewrite rules will always call up index.php and pass it parameters (if there are any).

  2. randybrown
    Member
    Posted 9 years ago #

    If your content is not hardcoded...there will be another answer

    What would that be? I do want to do some WP database queries on a couple of the pages?
    Thanks!
    <rb>

  3. randybrown
    Member
    Posted 9 years ago #

    The reason archives did not work is because /archives/ is taken over by the rewrite rules and wordpress.

    Thanks, MtnDew. So, I should able to use a different name and all will be well. Will do a test now.
    <rb>

  4. nickknowledge
    Member
    Posted 9 years ago #

    I have an existing site (non-WP, but I'm migrating), with URI's in the form
    http://www.mysite.org/geography/mountains/
    As a default with WP, even if I create sub-categories with just one post, the links will become:
    http://www.mysite.org/category/geography/mountains/
    However, adding this to the .htaccess file immediately after the RewriteBase line redirects them nicely:
    RewriteRule ^geography/?(.*) /wordpress/index.php?category_name=geography&$1 [QSA]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.