• Hello, I am using latest WordPress version in my website, I also have forum in subdomain. I recently noticed that my forum is unable to give 404 errors, instead of providing any type of 404 errors it simply redirects to forum main page. After some testing I noticed that this issue is caused by .htaccess of my main WordPress site.

    The thing is I never edited .htaccess file of my website, when I look at I see some default settings and some stuff related to Wordfence. What might be causing this kind of an issue and how can I fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • In the .htaccess file of your WordPress (in your site root), try to add the following ABOVE the default WordPress .htaccess directives:

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

    * Replace ‘subdirectoryname1’ with your actual forum subdirectory name.

    Thread Starter Darkrad

    (@darkrad)

    Hello, sadly didn’t cause any changes.

    Please post the contents of .htaccess of root (WordPress) and .htaccess of subdirectory (forum).

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

The topic ‘htaccess issue’ is closed to new replies.