WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error 404 x WordPress x .htaccess x 1&1 (2 posts)

  1. diperso
    Member
    Posted 2 years ago #

    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

  2. diperso
    Member
    Posted 2 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic