WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 404 error when accessing subdomain (2 posts)

  1. dylan.shearer
    Member
    Posted 1 year ago #

    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 partners.practiceparadox.com.au and the video player login is at partners.practiceparadox.com.au/evp . 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.

  2. dylan.shearer
    Member
    Posted 1 year ago #

    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]
    </IfModule>

    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).

Topic Closed

This topic has been closed to new replies.

About this Topic