Posted By

hotdiggity on 04/02/09


modrewrite htaccess cms

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


.htaccess exclude directory from mod_rewrite

 / Published in: Apache

In MODx, insert below:

The Friendly URLs part

RewriteCond %{REQUESTFILENAME} !-f RewriteCond %{REQUESTFILENAME} !-d

  1. RewriteCond %{REQUEST_URI} !^/name-of-directory(/.*)?$ [NC]
  2. RewriteRule .* rewrite?%{REQUEST_URI} [L]

Report this snippet  


RSS Icon Subscribe to comments
Posted By: BrentWPeterson on July 12, 2009

I am trying to use a seperate .htaccess file in a subdirectory. This code in my root .htaccess file is not working

RewriteCond %{REQUEST_URI} !^/products/ 
Options +FollowSymLinks
RewriteEngine on

I have an .htaccess file and an index.php file in the /products/ dir.

You need to login to post a comment.