Solved

Can't turn mod_rewrite off in subdomain folder

Posted on 2009-03-28
2
288 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Joomla Website Malfunction 9 48
Conditional Link URL - Easy Question 4 43
Grunt No Clean Targets 6 53
modify h2 4 8
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmakerā€¦
The viewer will learn how to dynamically set the form action using jQuery.

771 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

11 Experts available now in Live!

Get 1:1 Help Now