Apache Server configuration support - Rewrite Rules Problem (quickie) (htaccess)

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > Rewrite Rules Problem (quickie) (htaccess)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rewrite Rules Problem (quickie) (htaccess)
frizzle

2006-05-29, 5:40 pm

Hi there,

I don't really have a lot of htaccess-experience, so i'm trying to
handle things
by setting up a default htaccess file, which could be used anywhere. I
want to
rewrite everything *except* requests for folders "img", "swf", "css"
and "js".
I'll have requests being handled by index.php.

what i have sofar doesn't work at all, and redirects the url if i
specify one of those
folders.

RewriteRule ^!(img|js|css)$ ^index\.php?$1

Is it possible to have the htaccess use the directory it's in as root ?

Frizzle.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com