WordPress.org

Ready to get started?Download WordPress

Forums

Quick question - Use Mod_Rewrite to hide WP directory (8 posts)

  1. admin95
    Member
    Posted 5 years ago #

    Problem:

    I'd like to change this:
    http://www.example.com/wordpress/permalink_page_name
    to
    http://www.example.com/permalink_page_name

    Basically, I'd like to use mod_rewrite to hide the directory that wordpress is living in. I prefer not to move the install to the root since I am hosting several other sites from my address and want to keep things neat. I am also running permalinks and I don't know if that will conflict with what I am trying to do.

    If anyone has done this with their own site, I'd love it if you could post example .htaccess code to accomplish this.

    Mucho gracias

  2. iridiax
    Member
    Posted 5 years ago #

  3. admin95
    Member
    Posted 5 years ago #

    Thank you for your reply.

    I saw this solution but the problem is that I have an index.html existing in the root. It's a like a splash page to the blog driven main parts of the site. Won't index.php and index.html have a conflict living in the root together?

  4. iridiax
    Member
    Posted 5 years ago #

    Won't index.php and index.html have a conflict living in the root together?

    Yes.

    I have an index.html existing in the root. It's a like a splash page to the blog driven main parts of the site.

    You could get rid of index.html and instead use a static front page and posts page with WordPress: Dashboard -> Settings -> Reading

  5. admin95
    Member
    Posted 5 years ago #

    That's an option, but the splash page looks a bit different in structure than the rest of the site. It sounds like I am just going to have to make a compromise between having the design of the site look exactly how I want and making the url look exactly how I want.

    Thank you again for your response.

  6. iridiax
    Member
    Posted 5 years ago #

  7. admin95
    Member
    Posted 5 years ago #

    Good info, again, many thanks!

  8. admin95
    Member
    Posted 5 years ago #

    Thanks again iridiax, I've accomplished what I wanted with help from the links you provided. This issue is resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic