I had to add a rule to the .htaccess file of existing site, which redirect some old images urls to the new ones. So, directly after the
I added my new rule:
RewriteRule ^images/photos/(.+) /media/projects/$1 [L]
Locally and on the dev server - all is fine. But when I deployed it on the live site - it's not working :( ...
Locally I'm on OpenSUSE, the dev server is on Ubuntu Server, and the live server is FreeBSD. I ran phpinfo() and it showed that on the live server (shared hosting) I have mod_rewrite, so I don't know what could the problem be. Tried to add some "Options" to the .htaccess file, tried with flag for redirect in the end of the new rule ... but nothing changed.
All the other rules are working. When I break something in the .htaccess file - it gives me "Internal server error", and if I write "Deny from all" - it gives me "Forbidden" - as it should.
Can you help me? ... Thanks in advance :)
On another forum got some advices and tried:
RewriteRule ^images/photos/(.+) /media/projects/$1 [L] RewriteRule ^/images/photos/(.+) /media/projects/$1 [L] RewriteRule ^/?images/photos/(.+) /media/projects/$1 [L]
but none of these worked :( ...