Page 1 of 1

modrewrite

Posted: Fri Mar 31, 2006 12:20 pm
by wizzard
Hi,

I have a question about mod rewrite:

RewriteRule niche/(.*)\.(.*) /archief.php?niche=$1 [L]

I have this code above but i want that when a user typs in /archief/dancemusic.html.html or wathever a user types it doesnt matter it only need to takes dancemusic for my variable.

Anyone an idea?

Posted: Mon Apr 03, 2006 11:32 am
by RobertGonzalez
I think you can do that if you set your rewrite rule to look for a word with ANY or NO file extension.