WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting to a subdirectory (3 posts)

  1. vultan
    Member
    Posted 6 months ago #

    I've currently got WordPress installed in a subdirectory, so it is currently accessed via http://mydomain.com/wp. I'd like to reset things so it can be hit directly via http://mydomain.com. I've been looking at the instructions at

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    As far as I can tell, the second two sections ("Using a pre-existing subdirectory install", and "Pointing your home site's URL to a subdirectory") are two alternative approaches to solving the same problem, with the latter approach appearing to be dramatically simpler. So why the former? This page is missing an explanation of the relative advantages and disadvantages of each of these two approaches. What should I use to guide my choice of which of these two methods to use?

    Thanks for the info, much appreciated.

  2. jonradio
    Member
    Posted 6 months ago #

    My personal opinion is that the choice is heavily influenced with the knowledge and comfort level of the person (you) who will actually be doing it. In my own case, I despise the complexity of most .htaccess solutions, no matter what the problem, and also don't like solutions that don't work in Windows/IIS (.htaccess doesn't exist there).

    Which is why I always opt for "Using a pre-existing subdirectory install".

    As for the Codex, "Using a pre-existing subdirectory install" was published first, with "Pointing your home site's URL to a subdirectory" only published more recently. It wouldn't make sense to delete the old even if the new was better, simply because those of us who used the old way would no longer have documentation to reference in the future if we continued to want to use the old way.

  3. vultan
    Member
    Posted 6 months ago #

    Thanks, jonradio -- that's helpful. I suspect I'll give the second solution a whirl, but I'll have both ready to roll.

Reply

You must log in to post.

About this Topic