Home -> Law Blog Directory -> Legal Marketing & PR Blogs -> PaperStreet Web Design: SpeakOut
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense
Find a Local Lawyer
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402
Legal Marketing & PR
: PaperStreet Web Design: SpeakOutHTTPD.ini Rewrites - How to Exclude a Subfolder - Quick and Dirty
By Peter Boyd
Sorry to get geeky on our blog, but this is some good code for everyone with httpd.ini files installed on their Windows servers. The question often comes up on how to exclude a certain folder or subfolders from the rewrite processing rules.
Basically, you want your rewrites to process on all folders and files, except a certain folder or folders. Well to do that it’s easy:
RewriteRule /folder-name/(.*) /folder-name/$1 [L]
Simply put in your folder name for duh … the “folder-name” and it will exclude that from processing. Technically, I don’t think it excludes, but really processes it to write the same path. However, it works and that is all that matters for rewrites. You might have a slight speed increase if you can figure out the complex way of actually conditionally excluding folders and setting all the paths. So far, this is the quick and dirty way of doing that.
So two real-world examples are for excluding your blog and images directory:
RewriteRule /blog/(.*) /blog/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
If you wanted to exclude your blog or images directory from running rewrites that are also processing, use that code. Put this above any other rules that are processing, so it runs first and stops (the “L” means last rule).
Full post as published by PaperStreet Web Design: SpeakOut on March 17, 2009 (boomark / email).
Dirty Needles
Prompt HIV, Hepatitis Testing in Alberta
Hayes Bicycle Group
Recalls Quick-Release Devices
Medtronic
Recalls Specific Lots of Paradigm Quick-Set Infusion Sets
Moonshin Tattoo Parlour
Faces $20 Million Class Action Over Dirty Needles

This week: Draft quick and dirty
Should You Add Dirty Words to Your MS Word Dictionary
Electronista Review of Latest MacBook
A Quick-and-Dirty Empirical Defense of Prediction Markets:
Quick and Dirty Counterfeit Goods Lesson







