Removing “/wp” From WordPress Url

GOAL:  transform to,

1) in your dashboard, go to settings -> general and make sure

a) wordpress directory ->

b) site address ->

2) move your index.php from subdirectory to the root (MOVE, don’t just copy)

3) edit your index.php to read

/** Loads the WordPress Environment and Template */


where “wp” is your subdirectory

4) delete any .htaccess file in the subdirectory

5) add this to your .htaccess in the root

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

# END WordPress

Under this setup, your wordpress installation will be located in /wp/ directory. Visitors will visit your site using

If you want to have a good read-up on everything so you know exactly what you’re doing, read this

Facebook Comments

You may also like