.htaccess don't work in subdomains
2 posts
• Page 1 of 1
.htaccess don't work in subdomains
Hello,
we are using Helicon Rewrite 3 on IIS 7 and Windows 2008 with ASP-ASP.NET mixed application.
My Rewrite is configured like this:
we have almost 20 sites managed with the isapi-rewrite and all sites has same rules (www.site.com, sub.site.com, sub2.site.com ecc ecc, www.site.co.uk ecc ecc)
httpd.conf in c:\program files\helicon rewrite contains all rules applicable to all site
we already overriden some rules on domain base with RewriteCond directive.
Now we need to override ALL rules on a sudbomain using .htaccess method but the .htaccess method don't work.
We have tried to cancel the L flag on RewriteRule directive and we don't want to override all rules using RewriteCond directive.
We have two principal domains www.site.com and www.site.it and in this case the .htaccess works fine but in case sub.site.com it don't work and rewrite dont be executed.
Why?
Thanks in advance for your support
we are using Helicon Rewrite 3 on IIS 7 and Windows 2008 with ASP-ASP.NET mixed application.
My Rewrite is configured like this:
we have almost 20 sites managed with the isapi-rewrite and all sites has same rules (www.site.com, sub.site.com, sub2.site.com ecc ecc, www.site.co.uk ecc ecc)
httpd.conf in c:\program files\helicon rewrite contains all rules applicable to all site
we already overriden some rules on domain base with RewriteCond directive.
Now we need to override ALL rules on a sudbomain using .htaccess method but the .htaccess method don't work.
We have tried to cancel the L flag on RewriteRule directive and we don't want to override all rules using RewriteCond directive.
We have two principal domains www.site.com and www.site.it and in this case the .htaccess works fine but in case sub.site.com it don't work and rewrite dont be executed.
Why?
Thanks in advance for your support
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: .htaccess don't work in subdomains
Hello,
The order of applying rules is described here: http://www.helicontech.com/articles/exploding-myths-about-mod_rewrite-part-2/
Your issue is probably related to the permissions issue. Httpd.conf is in helicon folder and is fine, but .htaccess might not be accessible for ISAPI_Rewrite. You can see it in error.log or rewrite.log. Permissions issues are described here - http://www.helicontech.com/isapi_rewrite/doc/security.htm
Regards
Andrew
The order of applying rules is described here: http://www.helicontech.com/articles/exploding-myths-about-mod_rewrite-part-2/
Your issue is probably related to the permissions issue. Httpd.conf is in helicon folder and is fine, but .htaccess might not be accessible for ISAPI_Rewrite. You can see it in error.log or rewrite.log. Permissions issues are described here - http://www.helicontech.com/isapi_rewrite/doc/security.htm
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests