Forum Moderators: phranque
I'm new to apache, and have a bit of a dilemma. I've browsed around this forum a bit, and could find references to properly adding sub-domains or domains, but not bypassing an existing configuration.
I'm with an excellent hosting company and have 5 domains hosted under 1 account so my directory looks like:
www root /index.php of primary domain (.com)
www root /us/ second domain (.us)
www root /info/ third domain (.info)
Now, I want to use .htaccess to rewrite the index.php files to a logical directory order for search engines without disturbing the existing domains, as they have been configured transparently by the host provider, above my www root directory.
So when I use the below code to rewrite the index.php with the .htaccess in the www root:
RewriteEngine on
RewriteBase /
Options +FollowSymlinksRewriteRule^directory/$ /index.php?page=thispage
This then hoses up my other domains and sub domains. Is there a simple way to bypass or make the www root .htaccess not affect the other directories or domains/sub-domains?
I'm hoping this is something really simple.
Welcome to WebmasterWorld!
> I'm with an excellent hosting company
You might want to contact them and ask if their default configuration for your account includes:
RewriteOptions Inherit
RewriteRule ^directory/$ - [L]
Jim
Bingo, by jeeves, that may be the answer here, no complicted .htaccess needed if that can be done. And I see no reason why it can't?
Any follow ups to that idea?