PDA

View Full Version : .htaccess (excluding pages)


ChadWick
06-02-2006, 08:43 PM
Im using the mod_rewrite script to send pages like 'www.domain.com/list.php?id=mypage' and transfer them to 'www.domain.com/mypage/'

here is the script:


RewriteEngine on
RewriteRule ^([A-Za-z0-9]+)/$ /list.php?id=$1


now is there a way to edit the above script so that if i for instance go to www.domain.com/view/ it will go to the view folder and not www.domain.com/list.php?id=view.

Basicly somehow to not include certain pages.

Thanks

Kravvitz
06-03-2006, 05:03 AM
Sure. Try this:

RewriteEngine on
RewriteCond !%{REQUEST_URI} view/
RewriteRule ^([A-Za-z0-9]+)/$ /list.php?id=$1