List Info

Thread: redirecting, fixing lowercase




redirecting, fixing lowercase
user name
2006-07-06 17:42:25
awesome!
so i go
^/basket/([a-zA-Z])([0-9][0-9])$ http://foo.com/basket/\U$
1$2.php
thanks a bunch!!
Patty


El Roble Rentals | Google Groups wrote:
> Yes rewrite match works with regexp, try 
^/basket/([a-zA-Z])([0-9][0-9])$
> this will match upper or lowercase first letter and
then 2 numbers, you can
> also use ([0-9]) to match the 2 numbers in the same
string.
>
>
>
> -----Original Message-----
> From: phpmysqlgooglegroups.com [mailto:phpmysqlgooglegroups.com] On Behalf
> Of Patricia B
> Sent: 30 June 2006 16:12
> To: PHP & MySQL
> Subject: Re: redirecting, fixing lowercase
>
>
> won't that rewrite all urls to lower case? wouldn't
that be awful if I
> had directories or files that had upper-case characters
in the path?
> I'm asking because, well, I do have directories and
files that have
> upper-case characters.
> I only want to rewrite the last three characters in a
certain string,
> like:
> ^/basket/([a-z])([0-9][0-9])$
> to
> http://foo.com/basket/\U$
1$2.php
> but I don't know if Rewrite Match works with regular
expressions.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---

redirecting, fixing lowercase
user name
2006-07-06 18:00:27
Theres no real reason to have two brackets you could use  
^/basket/([a-zA-Z][0-9])$ http://foo.com/basket/\U$
1.php

This means starts with /basket/ and then 1 upper or lower
case letter and 2
numbers the character and numbers would be all in the $1
variable

Good luck
Simon

-----Original Message-----
From: phpmysqlgooglegroups.com [mailto:phpmysqlgooglegroups.com] On Behalf
Of Patricia B
Sent: 06 July 2006 19:42
To: PHP & MySQL
Subject: Re: redirecting, fixing lowercase


awesome!
so i go
^/basket/([a-zA-Z])([0-9][0-9])$ http://foo.com/basket/\U$
1$2.php
thanks a bunch!!
Patty


El Roble Rentals | Google Groups wrote:
> Yes rewrite match works with regexp, try 
^/basket/([a-zA-Z])([0-9][0-9])$
> this will match upper or lowercase first letter and
then 2 numbers, you
can
> also use ([0-9]) to match the 2 numbers in the same
string.
>
>
>
> -----Original Message-----
> From: phpmysqlgooglegroups.com [mailto:phpmysqlgooglegroups.com] On
Behalf
> Of Patricia B
> Sent: 30 June 2006 16:12
> To: PHP & MySQL
> Subject: Re: redirecting, fixing lowercase
>
>
> won't that rewrite all urls to lower case? wouldn't
that be awful if I
> had directories or files that had upper-case characters
in the path?
> I'm asking because, well, I do have directories and
files that have
> upper-case characters.
> I only want to rewrite the last three characters in a
certain string,
> like:
> ^/basket/([a-z])([0-9][0-9])$
> to
> http://foo.com/basket/\U$
1$2.php
> but I don't know if Rewrite Match works with regular
expressions.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )