Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/04/2010, 15:37
Avatar de jamesjara
jamesjara
 
Fecha de Ingreso: mayo-2008
Ubicación: san jose
Mensajes: 449
Antigüedad: 15 años, 11 meses
Puntos: 7
Sugerencia de redireccion y htaccess

Hi a todos, gracias por su tiempo
miren tengo mas que todo ganas de optimizar un htaccess.
y es el siguiente:

Redireccion el viejo dominio al nuevo
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*seguridad-web.isgreat\.org$ [NC]
RewriteRule ^(.*)$ http://www.seguridadweb.co.cc/$1 [R=301,L]

Redireccion si no hay www a las www
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.seguridadweb.co.cc$ [NC]
RewriteRule ^(.*)$ http://www.seguridadweb.co.cc/$1 [L,R=301]

convierto php a html
Options FollowSymLinks
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?page=$1


ErrorDocument 404 error.html
ErrorDocument 403 error.html
__________________
X7CLOUD El webservice latino!
Compatible
con mysql,sql,sqlitte.
Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming.