• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

[SOLVED] Redirect

Thank you for the answer, but i need help it's the first time that i use mod_rewrite. I have added on apache that mod.

First question, i'm addind the condition on the file at "/etc/httpd/conf/httpd.conf" (at the end of the file) is it correct?

If is correct i tried to add this, bus seems not work.
Code:
RewriteCond %{QUERY_STRING} ^/index.php?p=image&url=media(.*)$
RewriteRule ^/index.php?p=image&url=media /$1

Thank you for help,
Gunz
 
You have to use it on the .htaccess file and the rule should be:

Code:
RewriteCond %{QUERY_STRING} ^p=image&url=media/(.*)/(.*)/([\w]+\.png|jpg|gif)$
RewriteRule .* /media/%1/%2/%3 [R,L]

I'm not 100% sure if that will work...
Anyway, moved to faq
 
Rodolfo said:
You have to use it on the .htaccess file and the rule should be:

Code:
RewriteCond %{QUERY_STRING} ^p=image&url=media/(.*)/(.*)/([\w]+\.png|jpg|gif)$
RewriteRule .* /media/%1/%2/%3 [R,L]

I'm not 100% sure if that will work...
Anyway, moved to faq

Hmm.. you didn't move it, so I did...
 
Gunz said:

Strange but only that image give the redirect, i don't know if it's my browser fault...

Check: http://www.xxx.com/index.php?p=image&url=media/gb9/1281954648/Shot00007.jpg

Check: http://www.xxx.com/index.php?p=image&url=media/1kl/1334010804/troll.png

For me only the second link give the redirect, the first one no.
EDIT: i deleted cokiees and now both link don't work.

I modified the htaccess on /

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^api$ api.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

RewriteCond %{QUERY_STRING} ^p=image&url=media/(.*)/(.*)/([\w]+\.png|jpg|gif)$
RewriteRule .* /media/%1/%2/%3 [R,L]
</IfModule>
 
I don't understand why ithe first one works while the second no.

1. (it works fine)
Code:
RewriteRule ^ciao.php$ /ciao.html [R,L]

2. (it doesn't work)
Code:
RewriteRule ^index.php?p=image&url=media/sl0/1281536231/Shot00008.bmp$ /media/sl0/1281536231/Shot00008.bmp [R,L]

Maybe the symbols?
 
Back
Top