httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yvand <>
Subject [users@httpd] Issue with URL Rewriting
Date Tue, 09 Jul 2013 13:02:39 GMT
Hi all,

I want to redirect all requests like /icon.png to /pictures/icon.png, if 
the file exists in the pictures folder.
It seems really trivial but I didn't manage to set up.

Here is my .htaccess :
     RewriteEngine On
     RewriteCond /pictures/%{REQUEST_FILENAME} -f
     RewriteRule ^(.+) /pictures/$1 [L]

If I request /pictures/icon.png it works, but if I request /icon.png I 
get a 404 error.

What is wrong with my .htaccess?


PS : Sorry for my bad english


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message