Title: Problems access wp-admin &quot;&#8230;/.htaccess: Invalid command&quot;
Last modified: August 31, 2016

---

# Problems access wp-admin "…/.htaccess: Invalid command"

 *  [patrihueso](https://wordpress.org/support/users/patrihueso/)
 * (@patrihueso)
 * [10 years ago](https://wordpress.org/support/topic/problems-access-wp-admin-htaccess-invalid-command/)
 * Hello, my site is running correctly, but i´m trying to login as wp-admin and 
   I can fill in the user name and the correct password, but then the page only 
   stays “white” or “blank”.
 * I´ve contacted with my hosting and they told me this:
 * “/var/www/vhosts/patrihueso.es/httpdocs/.htaccess: Invalid command ‘{\\rtf1\\
   ansi\\ansicpg1252\\cocoartf1348\\cocoasubrtf170’, perhaps mis-spelled or defined
   by a module not included in the server configuration”
 * This is the content of my .htaccess file:
 *     ```
       #Protección del propio archivo .htaccess
       <Files ~ "^.*\.([Hh][Tt][Aa])">
         order allow,deny
         deny from all
         satisfy all
       </Files>
   
       #Protección de los archivos license.txt, readme.html y wp-config.php
       <FilesMatch "^(license|readme|wp-config|wp-config-sample).*$">
         order allow,deny
         deny from all
       </FilesMatch>
   
       #Desactivar la navegación por directorios
       Options All -Indexes
   
       #Desactivar la firma del servidor
       ServerSignature Off
   
       #BEGIN Seguridad contra hacking e Injections
       # 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]
       #END Seguridad contra hacking e Injections
   
       #BEGIN Caché de archivos
       <IfModule mod_expires.c>
       ExpiresActive on
   
       # Por defecto 1 mes de caché
       ExpiresDefault "access plus 1 month"
   
       # El HTML nunca debe de ser cacheado, así como los datos dinámicos
       ExpiresByType text/html "access plus 0 seconds"
       ExpiresByType text/xml "access plus 0 seconds"
       ExpiresByType application/xml "access plus 0 seconds"
       ExpiresByType application/json "access plus 0 seconds"
       ExpiresByType application/ld+json "access plus 0 seconds"
       ExpiresByType application/vnd.geo+json "access plus 0 seconds"
   
       # HTML components (HTCs)
       ExpiresByType text/x-component "access plus 1 month"
   
       # Favicon
       ExpiresByType image/x-icon "access plus 3 months"
   
       # Imágenes, vídeo, audio: 1 mes
       ExpiresByType image/gif "access plus 1 month"
       ExpiresByType image/png "access plus 1 month"
       ExpiresByType image/jpeg "access plus 1 month"
       ExpiresByType video/ogg "access plus 1 month"
       ExpiresByType audio/ogg "access plus 1 month"
       ExpiresByType video/mp4 "access plus 1 month"
       ExpiresByType video/webm "access plus 1 month"
   
       # Fuentes web: 1 mes
       ExpiresByType application/font-woff "access plus 1 month"
       ExpiresByType application/font-woff2 "access plus 1 month"
       ExpiresByType application/x-font-woff "access plus 1 month"
       ExpiresByType application/x-font-ttf "access plus 1 month"
       ExpiresByType font/opentype "access plus 1 month"
       ExpiresByType image/svg+xml "access plus 1 month"
       ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
   
       # CSS y JavaScript: 1 mes
       ExpiresByType text/css "access plus 1 month"
       ExpiresByType text/javascript "access plus 1 month"
       ExpiresByType application/javascript "access plus 1 month"
       ExpiresByType application/x-javascript "access plus 1 month"
       ExpiresByType text/plain "access plus 1 month"
       </IfModule>
   
       # Eliminar E-Tag
       <IfModule mod_headers.c>
         Header unset ETag
       </IfModule>
       FileETag None
       #END Caché de archivos
   
       #BEGIN Compresión GZIP
       <IfModule mod_deflate.c>
           # Force compression for mangled headers.
           <IfModule mod_setenvif.c>
               <IfModule mod_headers.c>
                   SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
                   RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
               </IfModule>
           </IfModule>
   
           <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/plain
        AddOutputFilterByType DEFLATE text/html
        AddOutputFilterByType DEFLATE text/xml
        AddOutputFilterByType DEFLATE text/css
        AddOutputFilterByType DEFLATE text/x-component
        AddOutputFilterByType DEFLATE application/xml
        AddOutputFilterByType DEFLATE application/xhtml+xml
        AddOutputFilterByType DEFLATE application/rss+xml
        AddOutputFilterByType DEFLATE application/javascript
        AddOutputFilterByType DEFLATE application/x-javascript
        AddType x-font/otf .otf
        AddType x-font/ttf .ttf
        AddType x-font/eot .eot
        AddType x-font/woff .woff
        AddType image/x-icon .ico
        AddType image/png .png
           </IfModule>
       </IfModule>
       #END Compresión GZIP
   
       #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
       ```
   
 * My URL is [http://www.patrihueso.es](http://www.patrihueso.es)
 * Does anybody now what I´m doing wrong and how can I solve it?
    Thanks a lot

Viewing 1 replies (of 1 total)

 *  [Tanveer Sure](https://wordpress.org/support/users/tsure/)
 * (@tsure)
 * [10 years ago](https://wordpress.org/support/topic/problems-access-wp-admin-htaccess-invalid-command/#post-7376073)
 * Hi,
 * I have a feeling that this may have something to do with access of .htaccess 
   file based on my findings from this thread :
 * [https://wordpress.org/support/topic/500-internal-server-error-176?replies=6](https://wordpress.org/support/topic/500-internal-server-error-176?replies=6)
 * You may want to re-create the .htaccess file (always keep a backup). To recreate.
   htaccess file you can refer [here](https://wordpress.org/support/topic/creating-a-new-htaccess-file?replies=4)
 * Hope that solves the problem.
 * ~Tanveer

Viewing 1 replies (of 1 total)

The topic ‘Problems access wp-admin "…/.htaccess: Invalid command"’ is closed to
new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Tanveer Sure](https://wordpress.org/support/users/tsure/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/problems-access-wp-admin-htaccess-invalid-command/#post-7376073)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
