modrewrite

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

modrewrite

Post 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?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply