[thelist] Apache mod_rewrite [SOLVED - at least it hasn't bro ken yet]

Rob Smith rob.smith at THERMON.com
Wed Mar 23 13:40:17 CST 2005

I dug around some more and found this:

ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{REQUEST_URI} \.(php|gif|html?|css|jpe?g)$ [NC]
RewriteRule . - [L]
RewriteRule ^([^/]+)/?$ Vendors.php?name=$1 [L]

This does in fact do:
From: http://www.mydomain.com/Demo
To  : http://www.mydomain.com/Vendors.php?name=Demo

Now I don't have to micromanage thousands of little folders, but one
database *evil laugh* mwahahahaha 


More information about the thelist mailing list