View Single Post
Old 08-31-2007, 03:52 AM  
roly
Confirmed User
 
Join Date: Aug 2002
Posts: 1,844
any mod rewrite experts around?

hi

just a quick query for any modrewrite experts around. i have this:

RewriteEngine On
RewriteBase /
RewriteRule ^some-word-(.*)-(.*).htm /category.php?pagenum=$1&catid=$2

so that any urls like some-word-2-1.htm are transfered to the correct page. but what i want is to be able to have wildcards before the word "some". e.g. i want random pages like random-text-some-word-2-3.htm to be transfered correctly too. so in that example i want the random-text part of the url to be ignored because this could be lots of different things. so bascially i need to know how to put a wildcard in the rewrite rule before the word some.
some-word-(.*)-(.*).htm

anyone got any ideas?

thanks in advance
roly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote