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] 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
Archived
This topic is now archived and is closed to further replies.