Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

Stopping mod_rewrite on certain directories?

I have a mod_rewrite script that changes query string URLs into directories. The problem is I just added a real directory, and mod_rewrite confuses it with a query string URL. Is there a way to say if the url is requesting /thisdirectory/ or anything in /thisdirectory/ to just go to that directory?
0
NickMaton12757
Asked:
NickMaton12757
  • 2
1 Solution
 
caterham_wwwCommented:
RewriteRule ^directory  - [L]

above your RewriteRules to skip them.
0
 
NickMaton12757Author Commented:
That makes www.MyDomain.com/directory/ work, but it still doesn't like www.MyDomain.com/directory/admin
0
 
caterham_wwwCommented:
The regEx uis open to rthe right side, so it should catch every filepath starting with directory. Do you have othr .htaccess files in place? Check the RewriteLog.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now