OK I bought both a regex book and a mod_rewrite book and am in the process of reading both, so these questions should start to diminish some time soon, but for now, can somebody explain to me why this simple rule won't work?
Code: Select all
RewriteRule ^/c/([A-Za-z0-9_-]+)$ /merchant2/merchant.mvc?Screen=CTGY&Store_Code=BS&Category_Code=$1 [L,QSA]
If you put in the second half manually into the URL, it works fine. so what am I doing wrong.... (if for example I type in /c/PL)
EDIT: Oh and I'm getting a 404
I just don't get it... this doesn't work either:
Code: Select all
RewriteRule ^/(|merchant\.mvc|index\.html)?$ /merchant2/merchant.mvc [L,QSA]
What in the world am I doing wrong??
The .htaccess file is in the right directory!
