rewrite problems with multiple value pattern

CLOSED

rewrite problems with multiple value pattern

Postby campy7 » Tue Feb 02, 2010 11:26 am

Hi,

I'm currently trying to figure out how can I do a rewrite for this:

http://server1.foo.com/solutions?id=10.1.234234.2623123

to

http://server2.foofoo.com/page1/portal? ... 34.2623123

Where the value 10.1.234234.2623123 is the format but the numbers will be changing.

I currently have this:

RewriteCond %{HTTP_HOST} server1.foo.com$
RewriteCond %{QUERY_STRING} ^(\w+)=(\w+)$
RewriteRule ^/solutions http://server2.foofoo.com/page1/portal? ... olutionid=%2 [N]

But it only works if the value of id=x not id=x.x.x.x

Thanks for any help.
campy7
 
Posts: 2
Joined: Tue Feb 02, 2010 11:13 am

Re: rewrite problems with multiple value pattern

Postby campy7 » Tue Feb 02, 2010 1:00 pm

campy7 wrote:Hi,

I'm currently trying to figure out how can I do a rewrite for this:

http://server1.foo.com/solutions?id=10.1.234234.2623123

to

http://server2.foofoo.com/page1/portal? ... 34.2623123

Where the value 10.1.234234.2623123 is the format but the numbers will be changing.

I currently have this:

RewriteCond %{HTTP_HOST} server1.foo.com$
RewriteCond %{QUERY_STRING} ^(\w+)=(\w+)$
RewriteRule ^/solutions http://server2.foofoo.com/page1/portal? ... olutionid=%2 [N]

But it only works if the value of id=x not id=x.x.x.x

Thanks for any help.




**** found the solution, please ignore my post ****
campy7
 
Posts: 2
Joined: Tue Feb 02, 2010 11:13 am


Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron