Search

WordPress: .htaccess for subdirectories Monday, March 12, 2007

This may or may not be due to my host provider (hosteurope.de)

Problem: Configuring Wordpress v2.x permalinks mode to clean URLs in subdirectories

As it took me a bit of headache to configure WP 2 with clean permalinks, I've decided to post the solution that worked for me here for you to use/apply if you're on the same host and encounter similar issues.

My solution: .htaccess mod_rewrite configuration for WordPress install via subdirectories:

  1. #DirectoryIndex index.php, index.html
  2. #Options +FollowSymLinks
  3. #RewriteBase /relative/web/path/
  4. < IfModule mod_rewrite.c >
  5. RewriteEngine On
  6. RewriteCond %{REQUEST_FILENAME} -f [OR]
  7. RewriteCond %{REQUEST_FILENAME} -d
  8. RewriteRule ^(.+) - [PT,L]
  9. RewriteRule ^(.*) index.php [L]
  10. < /IfModule >
  11. #php_value register_globals 0
Commenting is not available in this weblog entry.

Possibly Related

Enjoying Elsewhere

Freshly scribbled