Gunz
Chevereto Member
Hello guys,
I need a little help about redirect, i have a problem and i don't know how to solve.
I redirect:
http://imagestorming.com/index.php?p=image&url=media/qkg/1296779201/logo.png
to
http://www.s3.imagestorming.com/media/qkg/1296779201/logo.png
wit this rule:
That work perfect.
Now i need a little help about other two redirect.
1.
=====================================================
From:
http://imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg&d=160x160
To:
http://s3.imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg&d=160x160
I tried with:
But the first link is redirect to
http://www.s3.imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg%3f
With this %3f at the end that give an error on the thumb.
2.
=====================================================
From:
http://www.imagestorming.com/media/qkg/1296779201/logo.png
To:
http://www.s3.imagestorming.com/media/qkg/1296779201/logo.png
I tried with:
But it doesn't work.
Thank you for helpm
Cheers
I need a little help about redirect, i have a problem and i don't know how to solve.
I redirect:
http://imagestorming.com/index.php?p=image&url=media/qkg/1296779201/logo.png
to
http://www.s3.imagestorming.com/media/qkg/1296779201/logo.png
wit this rule:
Code:
RewriteCond %{QUERY_STRING} ^(.*&)?p=image&url=media/([^&]+)(&.*)?$ [NC]
RewriteRule ^index\.php$ http://www.s3.imagestorming.com/media/%2? [NC,L,R]
That work perfect.
Now i need a little help about other two redirect.
1.
=====================================================
From:
http://imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg&d=160x160
To:
http://s3.imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg&d=160x160
I tried with:
Code:
#RewriteCond %{QUERY_STRING} ^(.*&)?i=media/([^&]+)(&.*)?$ [NC]
#RewriteRule ^thumb\.php$ http://www.s3.imagestorming.com/thumb.php?i=media/%2? [NC,L,R]
But the first link is redirect to
http://www.s3.imagestorming.com/thumb.php?i=media/gb9/1281954648/Shot00007.jpg%3f
With this %3f at the end that give an error on the thumb.
2.
=====================================================
From:
http://www.imagestorming.com/media/qkg/1296779201/logo.png
To:
http://www.s3.imagestorming.com/media/qkg/1296779201/logo.png
I tried with:
Code:
RewriteCond %{QUERY_STRING} ^(.*&)media/([^&]+)(&.*)?$ [NC]
RewriteRule ^media$ http://www.s3.imagestorming.com/media/%2? [NC,L,R][NC,L,R]
But it doesn't work.
Thank you for helpm
Cheers