Foros del Web » Administración de Sistemas » Software para Servers »

Comprobar validez de .htaccess

Estas en el tema de Comprobar validez de .htaccess en el foro de Software para Servers en Foros del Web. Hola a todos/as Mi VPS anda justo de memoria. Y con el W3 total cache se atasca... Código: ServerSignature Off ServerSignature EMail SetEnv SERVER_ADMIN [email protected] ...
  #1 (permalink)  
Antiguo 20/03/2013, 11:25
 
Fecha de Ingreso: febrero-2007
Ubicación: Asturias
Mensajes: 77
Antigüedad: 17 años, 3 meses
Puntos: 4
Comprobar validez de .htaccess

Hola a todos/as

Mi VPS anda justo de memoria. Y con el W3 total cache se atasca...

Código:
ServerSignature Off
ServerSignature EMail
SetEnv SERVER_ADMIN [email protected]

# Redir urls
redirect 301 /2013/01/el-agua-no-es-un-negocio-no-se-vende-se-defiende-es-la-consigna-que-se-escucha-en-todo-ecuador/  http://xxxxxxxxxxxx.info/el-agua-no-es-un-negocio-no-se-vende-se-defiende-es-la-consigna-que-se-escucha-en-todo-ecuador/
# End Redir

#  Term Optimizer

Redirect 301 /tag/america-del-sur/ http://xxxxxxxxxxxxxxxxxxx.info/tag/america-latina-y-caribe/

RewriteEngine On
Options +FollowSymlinks

# INICIO comprimir contenido estático
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# INICIO comprimir contenido estático

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|jpe|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 15 Apr 2018 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_item_include file .html$
mod_gzip_item_include file .php$
mod_gzip_item_include file .css$
mod_gzip_item_include file .js$
mod_gzip_item_include mime ^application/javascript$
mod_gzip_item_include mime ^application/x-javascript$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include handler ^application/x-httpd-php
mod_gzip_item_exclude mime ^image/.*
</IfModule>



# INICIO bye bye spam
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*http://xxxxxxxxxxxxxx.info/.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
# FIN bye bye spam

# REDIRECT to FEEDBURNER
<IfModule mod_rewrite.c>
 RewriteCond %{REQUEST_URI} ^/feed/ [NC]
 RewriteCond %{HTTP_USER_AGENT} !(FeedBurner|FeedValidator) [NC]
 RewriteRule .* http://feeds.feedburner.com/xxxxxxxxxxxxxxxxx/FajG [L,R=302]
</IfModule>

# sin acceso a proc/self/environ
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
 
# bloquear cualquier script que trate de establecer un valor mosConfig a través de una URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
 
# bloquear cualquier script que trate de colocarte código codificado base64_encode a través de una URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
 
# bloquea cualquier script que incluya la tag <script> en la URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
 
# bloquea cualquier script que trate de establecer la variable PHP GLOBALS a través de una URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
 
# bloquea cualquier script que trate de modificar una variable _REQUEST a través de una URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
 
# manda a todas las peticiones bloqueadas a la página principal con un error de 403 Prohibido
RewriteRule ^(.*)$ index.php [F,L]



# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
No se si es mucho pedir o esta fuera de la intención de este foro. Pero quería saber si el orden es el correcto. Si es mejorable ... ya que a veces tarda en responder. En fin si desean hacer alguna sugerencia para aumentar el rendimiento

Gracias

Juan desde Asturias
__________________
Vamos a Cambiar el Mundo

Etiquetas: htaccess, ip, php, server, servidores-web, vps
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:49.