Solved

Can't turn mod_rewrite off in subdomain folder

Posted on 2009-03-28
2
289 Views
Last Modified: 2012-05-06
This is a apache/cpanel server.

Subdomains are created in WHM, not in cpanel.

I have scripts installed in the accounts root and a .htaccess with mod rewrite rules in the roots as well. I need to install another script in a folder. On my regular domains I create a folder like this: mydomain.com/folder/ and add a .htaccess file inside the folder with RewriteEngine Off. Now everything works great and the roots mod rewrite rules are off for the /folder/.

Now I create sub.domain.com/folder/ and add a .htaccess just like above. It doesn't work. The mod rewrite rules from the roots htaccess is not turned off for the folder.

Why is there a difference between the sub and the TLD and how do I fix this from the folders .htaccess?
0
Comment
Question by:mitechhost
2 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 24015729
I guess, that your subdomain's root .htaccess/<virtual>/<directory>/<location> section in httpd.conf has 'AllowOverride none' or 'AllowOverride -FileInfo' restriction.

Read http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now