[resolved] Using Rewrites for Sub Directories (2 posts)

  1. FireStorm Plugins
    Posted 7 years ago #

    Hey everyone,

    I was curious how to accomplish some basic rewriting within WordPress. I'm not sure if there is a way to accomplish within WordPress or if I should figure something out with .htaccess.

    I have a page: http://www.example.com/directory/. I want all subdirectories of /directory/ to go to the /directory/ page but still display /directory/subdirectory/ in the address bar - a basic rewrite easily accomplished with htaccess.

    What would be the best way to do this with wordpress?

    Thanks in advance for your help! :)


  2. FireStorm Plugins
    Posted 7 years ago #

    I ended up figuring this issue out by using $wp_rewrite. It was quite simple actually.

    Do a search on the forums for $wp_rewrite if you are looking to do the same thing as there are a few posts (with examples) on how to accomplish this.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.