expression help needed

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

expression help needed

Post by itsmani1 »

It sends all .html files to viewtickets.php?xxxxx=x
I want to send all files with
http://www.ticketchest.com/production/375053/xxxxx.html

375053 is variable number

to viewtickets.php?ContentID=$1
having problem in expression. any help?

Code: Select all

RewriteEngine On
	RewriteRule ^(.*).html viewtickets.php?ContentID=$1
User avatar
GeertDD
Forum Contributor
Posts: 274
Joined: Sun Oct 22, 2006 1:47 am
Location: Belgium

Post by GeertDD »

Do you mean something like this? Not sure whether I fully understand your question.

Code: Select all

RewriteRule ^production/(\d+)/(.*)\.html$ viewtickets.php?ContentID=$1
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

We're still waiting for you to answer: viewtopic.php?t=58422.
Post Reply