• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

[Help] htaccess redirect

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:
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
 
Back
Top