Menu Close

How to solve WordPress subdirectory page not found Error

Home 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 kapil S gary 2 years, 5 months ago.

  • Author
  • #197
    Eric Smith
    Eric Smith

    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 I always get an not found error. I know the subfolder exist. How to solve this error ?

  • #198

    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
    kapil S

    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]

You must be logged in to reply to this topic.

Skip to toolbar