Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/10/2010, 23:33
yoleogaturro
 
Fecha de Ingreso: octubre-2010
Mensajes: 67
Antigüedad: 13 años, 6 meses
Puntos: 2
Respuesta: ayuda error no se correguir

Esto quedo así es algo que copie de internet al archivo .htaccess
sigue con los mismos problemas

# BEGIN WordPress

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

# END WordPress

# BEGIN Redirect if request is not in the domain

<IfModule mod_rewrite.c>
RewriteCond %{HTTP_REFERER} !^https?://(www.)?yourdomain.com/.* [NC]
RewriteRule ^/?wp-content/?.* http://www.yourdomain.com/ [NC,L,R=301]
RewriteCond %{HTTP_REFERER} !^https?://(www.)?yourdomain.com/.* [NC]
RewriteRule ^/?wp-includes/?.* http://www.yourdomain.com/ [NC,L,R=301]
# RewriteCond %{HTTP_REFERER} !^https?://(www.)?your domain.com/.* [NC]
# RewriteRule ^/?wp-admin/?.* http://www.yourdomain.com/ [NC,L,R=301]
</IfModule.c>

# END Redirect if request is not in the domain

# BEGIN wp-content protection

Redirect 301 /wp-content/index.php http://www.yourdomain.com/
Redirect 301 /wp-content/themes/index.html http://www.yourdomain.com/
Redirect 301 /wp-content/plugins/index.html http://www.yourdomain.com/
Redirect 301 /wp-content/uploads/index.html http://www.yourdomain.com/

# END wp-content protection

# START disable hotlinking of images with forbidden or custom image option

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.yourdomain.com/.*$ [NC]
#RewriteRule \.(gif|jpg)$ - [F]

# END disable hotlinking of images with forbidden or custom image option

# protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>

# protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>