This may have been discussed before, but I wasn't able to find a solution.
I have a blog that is located in the root of a domain, at least to the eye of the user. However, the WordPress files are located in a sub-directory. Now I'm having troubles with upgrading to 1.5. When WordPress 1.5 modifies the .htaccess file, it always creates rules that expect the WordPress index.php to be in the root of the domain, causing the whole thing fail.
Here's my setup:
WordPress address: http://www.visakopu.net/wordpress
Blog address: http://www.visakopu.net
Permalink structure: /weblog/%year%/%monthnum%/%day%/%postname%/
Category base: [empty]
Sample of the .htaccess written by WordPress:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=35]
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
This is how I've got it working properly: (note that I've added the name of the sub-directory before /index.php)
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=35]
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /wordpress/index.php?&feed=$1 [QSA,L]
I know I can fix the rules manually and chmod the .htaccess file so that WordPress can't write to it, but it's not a real solution, is it?