RewriteEngine On RewriteCond %{REQUEST_URI} !img RewriteRule ^(.*) img$1 [R]