Like I posted some time ago, I had some problems resolving the rewrite engine when trying to access my kickstart page (http://vstone.eu/kickstart) and separating it from http://kickstart.vstone.org. I proposed a solution but that only worked half the time. It was a work around at the time, but it gave me some problems in the end. Since the check for the referer was in there, I couldn’t access my wordpress/wp-admin page anymore when using the link on the main page. This gave me a nice 404.
So, I decided to be smart about it, reset the .htaccess file in my root folder to the default one for wordpress and adjust a separate .htaccess file in the kickstart subfolder. It looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
# BEGIN WordPress
RewriteBase /kickstart/
RewriteCond %{HTTP_HOST} !^kickstart.vstone.org$ [NC]
RewriteRule . /index.php [L]
# END WordPress
</IfModule>
By setting the RewriteBase to /kickstart/, I’m already sure this rewrite condition will never match ‘http://kickstart.vstone.org/’. This could only give me problems when I have sth like http://kickstart.vstone.org/kickstart/. So, I also make sure that the HTTP_HOST never is kickstart.vstone.org.
After that, I can be pretty sure I can rewrite it to the index file used for wordpress.