Support » Fixing WordPress » Error 404 x WordPress x .htaccess x 1&1

  • Resolved diperso

    (@diperso)


    Hi
    We are being attacked by a chinese server “163.data.com.cn” so I decided to create a .htaccess and put it at the root of the website.
    Here is the .htaccess :

    # BEGIN WordPress
    
    Order Allow,Deny
    
    Allow from all
    
    Deny from 163.data.com.cn
    
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    
    # END WORDPRESS

    The problem is I can’t navigate on the other pages of the website. Only the index/main page. If I try see what happens here
    I looked for answers but nothing worked.

    Many THANKS for helping me.

    Batist

Viewing 1 replies (of 1 total)
  • diperso

    (@diperso)

    Here’s what I added to the .htaccess and now it works !

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘Error 404 x WordPress x .htaccess x 1&1’ is closed to new replies.