djones Posted February 14, 2009 Share Posted February 14, 2009 I'm forwarding subdomains to a certain page. The problem is it won't give me access to other pages outside that. For example if I try to go to login.php it keeps sending me to company.php. This is what I have so far Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^(mydomain\.com)$ [NC] RewriteRule .* http://www.%1%{REQUEST_URI} [R=301] RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com$ [NC] RewriteRule .* - [L] RewriteCond %{HTTP_HOST} ^(^.*)\.mydomain.com RewriteRule (.*) company.php?company=%1 [QSA,L] Quote Link to comment https://forums.phpfreaks.com/topic/145220-dynamic-subdomains-not-allowing-access-to-other-files/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.