htaccess redirect not apply specific url

by MariGanesh 2014-07-04 14:54:04

htaccess redirect not  apply specific url

                     If you redirect all php files to another files but some php files is not redirect tha case you can use the following code.

For Example :
            Here all ".php" file redirect to test.php.but index.php is redirect to "index.php".
   

CODE :         
RewriteCond %{REQUEST_URI} !/php/index.php 
RewriteCond %{REQUEST_URI} ^/php/(.*).php
RewriteRule ^php/(.*).php /php/test.php?name=$1 [L]

Tagged in:

1160
like
0
dislike
0
mail
flag

You must LOGIN to add comments