• I have a php website running on public_html/main, and two subdomains in public_html/blog and public_html/photos.

    So I can access my website and subdomains like that:
    domain.com
    blog.domain.com
    photos.domain.com

    The problem is that wordpress is taking over the route of the main website. If I hit domain.com/photos I receive a normal 404 webpage.
    But if I hit domain.com/blog, I receive a 404 webpage INSIDE wordpress, so WordPress is taking control of the /blog address and trying to search /blog inside it.

    I’m very confused and everything that I use in .htaccess is not working.

    How can I prevent access from domain.com/blog?

Viewing 1 replies (of 1 total)
  • I think there is a confusion.

    domain.com/blog will result to 404 error since the /blog files is under the public_html folder and not in public_html/main. You should be accessing the subdomain blog.domain.com.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress route in subdomain’ is closed to new replies.