Solved

Can't turn mod_rewrite off in subdomain folder

Posted on 2009-03-28
2
292 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 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