Support » Fixing WordPress » 404 error when accessing subdomain

  • Resolved dylan.shearer


    Recently, when we try to access a video player install on a domain that also runs one of our wordpress sites, we are greeted with a 404 page instead of the login page to the video player.

    The site is and the video player login is at . I have investigated multiple fixes, none of which work. I have even gone so far as to completely remove the htaccess file yet i’m still greeted with a 404 error, despite the url and subfolder being correct.

    Please Help.

Viewing 1 replies (of 1 total)
  • Ok. So thankyou world for not helping. If anyone comes across this post, here’s how you can solve the problem.

    I placed the following code at THE START of my .htaccess file, before any wordpress .htaccess code.

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

    If you are greeted with a generic 404 page instead of your site’s 404 error page, the code IS WORKING. Your subdirectory’s location is not in the right place. Investigate your folder structure and make sure the subdirectory you want to get to is placed in the public_html folder (your site root).

Viewing 1 replies (of 1 total)
  • The topic ‘404 error when accessing subdomain’ is closed to new replies.