?
Solved

Combine three .htaccess files

Posted on 2012-09-07
1
Medium Priority
?
198 Views
Last Modified: 2012-09-16
How can I combine these three .htaccess files into a single  .htaccess file?

#### /home/me/html/.htaccess #####
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*) xyz.php

#### /home/me/html/zooph/.htaccess #####
RewriteEngine On
RewriteBase /zooph/
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*) zooph.php

#### /home/me/html/zooph/data/.htaccess #####
order allow,deny
deny from all

Open in new window

0
Comment
Question by:hankknight
1 Comment
 
LVL 26

Accepted Solution

by:
arober11 earned 2000 total points
ID: 38377728
Try:

### /home/me/html/.htaccess #####

RewriteEngine On
RewriteBase /

RewriteRule  ^zooph/data/.*   -  [F]

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^zooph/.*   /zooph/zooph.php  [L]

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule .* xyz.php [L]

Open in new window

0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

839 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