Disable mod_rewrite for a specific folder

Discuss practical ways rearrange URLs using mod_rewrite.

Disable mod_rewrite for a specific folder

Postby giacomogd1 » Tue Sep 07, 2004 5:55 am

Hi,
in my website each request is rewritten as follows:

RewriteRule ^/*([-a-zA-Z0-9_/]+)\.html$ /mainfile.php?request=$1

Now I have some stand-alone .html files I don't want to be catched by mod_rewrite. They are all in the /documents/ folder. How can I prevent mod_rewrite to catch 'em?
giacomogd1
 
Posts: 2
Joined: Sun Aug 22, 2004 2:13 am

Postby seomike » Wed Sep 08, 2004 3:38 pm

RewriteCond %{REQUEST_URI} !/file-you-dont-want-the-mod-for-1\.html$
RewriteCond %{REQUEST_URI} !/file-you-dont-want-the-mod-for-2\.html$
RewriteRule ^/*([-a-zA-Z0-9_/]+)\.html$ /mainfile.php?request=$1
seomike
 
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas

Postby Guest » Fri Sep 10, 2004 2:52 am

thanx :wink:
Guest
 


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 84 guests

cron