Hosting, Webmaster, Marketing and SEO Forums Forums Web Hosting Forums cPanel Control Panel Discussion How to solve WordPress subdirectory page not found Error

This topic contains 2 replies, has 3 voices, and was last updated by  gary 1 year, 1 month ago.

  • Author
    Posts
  • #197
    Eric Smith
    Eric Smith
    Keymaster

    I have a WordPress website installed in plublic_html root directory. But I have another non-WordPress Website installed in a sub folder of root directory. public_html/subfolder.

    When I click http://mywebsite.com/subfolder/ I always get an not found error. I know the subfolder exist. How to solve this error ?

  • #198
    food2young
    food2young
    Keymaster

    This has worked for me in the past for a similar situation :

    Put this on top of .htaccess

    ErrorDocument 401 default

    The htaccess file should be in the root directory of your website. On the end of the top of your htaccess file in your root folder.

  • #200

    gary

    In the .htaccess file in your site root, add the following ABOVE the WordPress .htaccess directives:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/subfolder1/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/subfolder2/(.*)$ [OR]
    RewriteRule ^.*$ – [L]
    </IfModule>

You must be logged in to reply to this topic.

Skip to toolbar