glow-desktop glow-mobile glow-tablet bg-header banner pattern banner pattern

# Get Sorted


Domains / Hosting

or browse the Help Centre by category


How to remove the term WordPress from your site’s URL

If your WordPress website's URL ends in /wordpress or /wp, you may have installed WordPress in a subdirectory or subdomain.

You can get rid of /wordpress or /wp from your site address (URL) by following the steps below:

  1. Change the site address in WordPress.
  2. Download index.php and .htaccess files.

It is recommended that you do a backup of your website before making any changes.

Step 1: Change the site address in WordPress

You can change the site address (URL) in your WordPress admin dashboard.

  • Login to your WordPress admin dashboard, eg:
  • Select ‘Settings’ from the menu on the left-hand side.
  • Select ‘Settings’ and below that select 'General'.
  • Under 'General Settings', in the ‘Site Address (URL)’ field remove ‘/wp’ from the end.
  • Scroll down and click the 'Save Changes’ button.

If you type the site’s URL into a browser, you will be presented with an error message that says the site does not exist as you still need to move some files to the correct directory. To resolve the error message please proceed to step 2.

Sept 2: Download index.php and .htaccess files

You will need to connect to your website using an FTP client such as FileZilla to download the index.php and .htaccess files.

What is FTP? 

FTP stands for File Transfer Protocol. File Transfer Protocol is a standard network protocol used for the transfer of computer files between a client and a server on a computer network.

Get FileZilla. 

You can download FileZilla from their website.

  • Login to the FileZilla application.
Hosting passwords. 

If you would like to know How to send hosting passwords please read our Help Centre article for further assistance.

  • Go to the public_html/wordpress/ folder.
  • Select the ‘.htaccess’ file.
  • Right-click on the '.htaccess’ file.
  • Download the .’htaccess’ file to your computer.
  • Select the ‘index.php’ file.
  • Right-click on the ‘index.php’ file.
  • Download the ‘index.php’ file to your computer.
  • Open the ‘index.php’ downloaded to your computer with a text editor such as WordPad.
  • Look for this line in the ‘index.php’ file:

require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

  • Change the line as follows:

require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );

  • Upload the index.php and .htaccess files from your computer back to the ‘public_html’ folder.
Upload files via FileZilla. 

If you would like to know How to upload files using FileZilla please use our Help Centre article for further assistance.

With the files in the ‘public_html’ folder, the website should now load without the error message and ‘/wp’ in the URL.

Afrihost Network Status

See the status of our broadband, mobile and hosting networks

For more details, visit our Network Status Page

ClientZone - just like magic

Manage products  .  Make payments  .  Check balances  .  Top up your account

Manage Products
Make Payments
Check Balances
Top Up your Account