A
A
Anton Medvedev2012-03-30 10:53:58
Apache HTTP Server
Anton Medvedev, 2012-03-30 10:53:58

RewriteRule works locally but doesn't work on server

I can't understand why these rules work for me on the local, but do not work on the server.

RewriteRule ^thumb.php$ thumb.php [L]
RewriteCond %{QUERY_STRING} w=[0-9]+ [OR]
RewriteCond %{QUERY_STRING} h=[0-9]+ [OR]
RewriteCond %{QUERY_STRING} ^tc?$
RewriteRule ^(.*)\.(jpg|gif|png) thumb.php?name=%{REQUEST_FILENAME}&%{QUERY_STRING} [NC,L]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gaelpa, 2012-03-30
@gaelpa

Is mod_rewrite even present/enabled on the server? Is the "RewriteEngine On" line missing or missing?

M
Mikhail Osher, 2012-03-30
@miraage

Maybe in httpd.conf AllowOverride FileInfo is disabled?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question