Neat little trick: Running WordPress from a subdirectory

While replacing the terribly outdated homepage of the honorary consulate of Nepal in Cologne for my father with a easy to maintain WordPress installation, I stumbled upon a useful little trick at TechCounter for running WordPress from a subdirectory while keeping your URLs uncluttered.

Here is the gist:

  1. In WordPress’ General Options, keep your WordPress address, but change Blog address to
  2. Move WordPress’ index.php to the root directory.
  3. Edit index.php:
    is changed to
  4. If you have a .htaccess file in your WordPress directory, move this to the root directory too and remember to check whether you have to make any adjustments in the file (maybe some old redirects?).

Worked like a charm for me!

For a more detailed guide, check the original post at TechCounter.

Leave a Comment