Redirect All file other than .php

by Vinoth 2009-09-04 20:08:54

To redirect all file which don't have .php, .html, .gif etc

RewriteEngine on
RewriteCond %{REQUEST_URI} !.html$
RewriteCond %{REQUEST_URI} !.php$
RewriteCond %{REQUEST_URI} !.gif$
RewriteCond %{REQUEST_URI} !.jpg$
RewriteCond %{REQUEST_URI} !.png$
RewriteCond %{REQUEST_URI} !.css$
RewriteRule (.*) http://example.com/somefile.php[L]

Tagged in:

1205
like
0
dislike
0
mail
flag

You must LOGIN to add comments