• Because of the modrewrite in root (for permalinks) .htaccess file, some page urls in root and some non-wordpress folders are displaying 404 error.

    Any solution to this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bittup

    (@bittup)

    Any help? I searched the internet. But nothing is working. Any rewrite rule to exclude some root urls and non-wp folders?

    Thread Starter bittup

    (@bittup)

    Guys, anybody installed WP in root and having these problems?

    Hi,

    Check with these options:

    – Assign 755 recursive permissions to wp-content folder.
    – Set your desired permalink from wordpress admin area
    – add this code in htaccess:

    # BEGIN WordPress
    
    <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>
    
    # END WordPress

    Thanks,

    Shane G.

    Thread Starter bittup

    (@bittup)

    I can not access pages like:

    mysite.com/subscribe.html (it is non-wp page)
    mysite.com/folder/index.html (non-wp folder)

    When I access these pages, getting 404 error because or permalink modrewrite in root .htaccess.

    So above code – how it works?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress root install – .htaccess problems’ is closed to new replies.