• 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: https://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! ??

    Wes

Viewing 1 replies (of 1 total)
  • Thread Starter FireStorm Plugins

    (@wfernley)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Using Rewrites for Sub Directories’ is closed to new replies.