Web Hosting and webmaster Forums Forums Linux 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 week, 2 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #197 Reply
    Profile photo of 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 Reply
    Profile photo of 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 Reply

    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>

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to solve WordPress subdirectory page not found Error
Your information:




Skip to toolbar