No al cierre de webs
TreeWeb::Artículos::Apache::.htaccess tricks
Permalink: http://www.treeweb.es/u/1312/ 05/02/2016

.htaccess tricks

Redirect to www
    0 
    1 RewriteEngine On
    2 
    3 RewriteCond %{HTTP_HOST} !^www.
    4 RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    5 
Redirect all to /index.php
    0 
    1 RewriteEngine On
    2 
    3 RewriteCond %{REQUEST_URI} !=/index.php
    4 RewriteRule .* /index.php [NC,L]

    5 
Powered by TreeWeb
© TreeWeb 2010. Todos los derechos reservados