Support » Fixing WordPress » How do I get rid of '/wp' on the end of my URL?

  • I originally had a different website uploaded to my webhost, then decided to create a wordpress one instead. After completing the wordpress site I deleted the original site off the server but the wordpress site will still only view if I add ‘/wp’ to the end of my domain. If I just type my URL in I get an index list (which obviously I don’t want people seeing!) Another domain name I was working on didn’t have this problem so I am assuming it is something to do with having a previous index file uploaded?

    I have tried following the instructions at:


    but managed to mess it up and had to start my site again from scratch. I’m now really nervous about messing it up again. Does anyone have any simpler instructions?

Viewing 15 replies - 1 through 15 (of 27 total)
  • you might have a .htaccess leftover from old site

    >>so I am assuming it is something to do with having a previous index file uploaded?

    If you deleted the full old site; there should be no leftovers

    what is the content of your currnet html or htdocs folder on server

    Thanks for answering – the contents of my public_html folder is:

    CGI-bin folder
    WP folder

    Should I have deleted anything else?

    There are no leftovers; so its not leftovers causing a problem

    Sorry did you do a ls –all

    to show .htaccess files as well

    Moderator keesiemeijer



    Do you have a index.php in your root directory
    It should have this in it:

     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     * @package WordPress
     * Tells WordPress to load the WordPress theme and output it.
     * @var bool
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */

    This would be the easy option if you did it the first time

    Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory. As stated above, copy (don’t move) the index.php file to your root directory, but MOVE (DON’T COPY) the web.config file to your root directory.


    keesiemeijer spotted the missing files correctly

    you did not move the files correctly; you did not follow

    I have index.php in my wp folder – should I move it to my public_html folder?

    Sorry I meant copy! Still looking for the .htaccess files. I have checked the show hidden files box

    I found wp-config.php – is that the right file? Nothing changed when I moved it. Have copied index.php

    Moderator keesiemeijer



    In what directory are all your WordPress files?
    Are all your WordPress files in your “WP folder”?

    Yes, apart from the index and the config files I have just moved (copied the index)

    Moderator keesiemeijer



    And you want them in the root of your site, without the “WP” at the end of the url?

    check “WordPress address (URL)” and the “Site address (URL)” under Settings > General in the wp-admin.

    is there /WP folder or /WP at the end of these urls?

    Yes there is for both of them – when I tried removing the wp I got an error message and lost the dashboard and the site. I couldn’t figure out what to change in the c-panel so I ended up reinstalling wordpress!

    Moderator keesiemeijer



    You didn’t have to do that. You can move the files in WP folder to your root directory.

    Be sure that the wp-config.php is pointing to the correct database.

    Ok I moved them and it’s messed up the site again! Moved them back and it’s still not working – just showing an index of my files when I type in the URL

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘How do I get rid of '/wp' on the end of my URL?’ is closed to new replies.