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 »
I am trying to access
/cityguides/GA/Atlanta/
using
Code: Select all
RewriteRule ^cityguides/([A-Z][A-Z])/(.*)/ citytickets.php [nc]
and gets this error:
The requested URL /cityguides/GA/Atlanta/ was not found on this server.
-
Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
-
Contact:
Post
by Kieran Huggins »
Try with a leading / ?
Code: Select all
RewriteRule ^/cityguides/([A-Z][A-Z])/(.*)/ citytickets.php [nc]
-
John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
-
Contact:
Post
by John Cartwright »
your A-Z won't match Atlanta, you must incorporate lower case letters as well.
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
Post
by itsmani1 »
Jcart wrote:your A-Z won't match Atlanta, you must incorporate lower case letters as well.
A-z is for GA not for Atlanta
for Atlanta i am using (.*)
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
Post
by itsmani1 »
Kieran Huggins wrote:Try with a leading / ?
Code: Select all
RewriteRule ^/cityguides/([A-Z][A-Z])/(.*)/ citytickets.php [nc]
yes hope this [leading /] will work
-
John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
-
Contact:
Post
by John Cartwright »
itsmani1 wrote:Jcart wrote:your A-Z won't match Atlanta, you must incorporate lower case letters as well.
A-z is for GA not for Atlanta
for Atlanta i am using (.*)
My mistake.
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
Post
by itsmani1 »
Jcart wrote:itsmani1 wrote:Jcart wrote:your A-Z won't match Atlanta, you must incorporate lower case letters as well.
A-z is for GA not for Atlanta
for Atlanta i am using (.*)
My mistake.
Well no problem its ok,
thank you
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
Post
by itsmani1 »
its working fine now
