Any questions involving matching text strings to patterns - the pattern is called a "regular expression."
Moderator: General Moderators
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
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
-
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