WordPress.org

Ready to get started?Download WordPress

Forums

Removing "wordpress" from the URL (3 posts)

  1. neoikon
    Member
    Posted 11 months ago #

    Hello, I have an established site, installed in the "/wordpress" sub-folder.

    All links on my site include the "/wordpress" sub-directory in the URL, which makes the URL longer, looks less professional, and advertises what platform I'm using. (ex: http://example.com/wordpress/page1)

    I would love to leave wordpress installed where it is, but simply have the URL change from:
    http://example.com/wordpress/page1
    to this:
    http://example.com/page1

    Again, making my site look more like a company rather than a blog.

    I've gone through this tutorial:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I feel the "Using a pre-existing subdirectory install" fits my situation, but I can't get it to work properly. I either get a "redirect loop error" or a plain white screen.

    I am running on Windows IIS so I don't have a .htaccess file. I do have a web.config file, but if I copy this to the root, the site breaks. Should I move it instead of copying it? The instructions aren't clear on what to do with the web.config.

    Any help is greatly appreciated!
    Daniel

  2. lee@digitalacorn
    Member
    Posted 11 months ago #

    Hi,

    Basically you need to move the whole wordpress install down to the root.

    After that you will need to edit the database so that all references of whatever.com/wordpress are changed to just whatever.com

    Be careful if you do it yourself, make a back up of the DB first.

  3. neoikon
    Member
    Posted 11 months ago #

    Thank you for the reply. Is the DB stored within the WordPress directory? Can I leave the original sub-directory untouched as a backup? Which tables in the DB do I need to change?

    Based on the tutorial I was originally looking at, what is that tutorial actually trying to do? "Using a pre-existing subdirectory install" section.

    This link: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Thank you!

Reply

You must log in to post.

About this Topic