Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/08/2015, 08:01
boryi
 
Fecha de Ingreso: mayo-2011
Mensajes: 282
Antigüedad: 13 años
Puntos: 3
archivo .htaccess para wordpress

Hola buenas, me estoy pegando con el archivo .htaccess para wordpress. Actualmente mtengo esto en el archivo .htaccess, alguien me puede decir si me falta algo importante. o si esta bien??

# 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

# protege el archivo htaccess
order allow,deny
deny from all

# Bloquear comentarios spam
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

#Dirigir a los motores de indexación hacia robots.txt y evitar a los bots maliciosos
RewriteBase /
RewriteCond %{REQUEST_URI} !^/robots.txt$ [NC]
RewriteCond %{REQUEST_URI} robots.txt [NC]
RewriteRule .* http://your-site.com/robots.txt [R=301,L]

O sino alguien me podria asesorar como hacer un buen .htaccess para wordpress??

Gracias

Última edición por boryi; 10/08/2015 a las 08:41