htaccess affecting other sites on multiple domain host
-
I currently have hosting through HostGator that allows me to host multiple domains. I mainly host different WP blogs, but I’ve moved to some other style sites. My problem is that if someone types in a bad URL for one of my alternate domains, it gets routed to my /index.php
My wordpress install is located in /blog, but I didn’t like that extra part, so have it set up so that the blog shows up in the root, /index.php. I’ve tracked down the problem to the htaccess code wordpress needs to work. If I remove it, the 404 pages work for the other sites, but it breaks my WP install (pages not found). After some research I see why it is breaking. If there isn’t a real file or directory, it routes the request to /index.php. Does anyone know a way around this?
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
- The topic ‘htaccess affecting other sites on multiple domain host’ is closed to new replies.