Seeing /wordpress on your site’s URL can be pretty annoying even if you love the WordPress platform. Don’t worry, though, because it’s quite easy to fix. You see, the reason you’re seeing /wordpress as part of your site’s URL is that you installed it in your domain’s subdirectory instead of the root directory. Therefore, the solution to this problem is to move your website address to the root directory of your domain.
Method #1 – Reinstall WordPress to Your Site’s Domain
Reinstalling WordPress is an easy and simple way to solve the /wordpress issue. That is if you haven’t loaded a lot of content on your site yet. With minimal to no content, you can delete your existing WordPress and simply reinstall it – this time, in the root directory. Yes, starting over again is the best method in this particular situation.
Method #2 – Edit Your Site’s Address
Now, if your website is up and running, the method involved to remove /wordpress from your site’s URL is not that easy. It’s still doable, however, so just follow the steps below.
Step 1 – Go to your WordPress Dashboard to access the Admin area.
Step 2 – In the Settings section, click the General option.
Step 3 – In the General section, you will see the following:
WordPress Address (you will see your site’s URL here) e.g. http://www.your-domain-address.com/wordpress
Site Address (you will also see your site’s URL here) e.g. http://www.your-domain-address.com/wordpress
As you can see, the WordPress address and Site address are the same. At this point, all you need to do is edit the Site address by removing the /wordpress at the end of the URL. It should look like this:
Step 4 – Connect to your site through your FTP (File Transfer Protocol) client. If you’re a beginner, please note that FTP is used for uploading, downloading, and managing files when you update your website. An example of FTP is File Zilla (it’s free and a lot of website owners use this).
Step 5 – Inside your FTP client, look for the /wordpress/ directory.
Step 6 – In the /wordpress/ directory, you will find 2 files, namely, index.php and .htaccess. Download both files and save them on your computer. Don’t worry if you are unable to find the .htaccess as some FTP clients choose to hide this file. To address this issue, you need to unhide your FTP client’s hidden files. You can do this by looking for the Server options (this is usually found in the menu section). Once there, click on the show hidden files option.
Step 7 – Launch a text editor on your computer (Notepad will do) and use it to open the index.php file.
Step 8 – Your text editor will show a command line for the front end (view) of your website. You need to insert /wordpress in the line to make it look like this:
require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
Step 9 – Save the changes you made to the file.
Step 10 – Upload the index.php file (with changes) and .htaccess file to the root directory using your FTP client.
And that’s it, super easy 🙂