WordPress.org

Ready to get started?Download WordPress

Forums

error 404 for subfolder (4 posts)

  1. qdungeng
    Member
    Posted 9 months ago #

    Dear friend
    How to rewrite for subfolder to 404 error

    my hosting with prime domain : domain.com
    addon domain : domain1.com working with subfolder1 on root.
    how to rewrite domain.com/subfolder1/ to 404 error for domain.com only.

    Please help me.

  2. esmi
    Forum Moderator
    Posted 9 months ago #

  3. qdungeng
    Member
    Posted 9 months ago #

    Not working, please help me

  4. qdungeng
    Member
    Posted 9 months ago #

    I did copy this code to .htaccess of root (domain.com).
    ErrorDocument 404 /subfolder1/index.php?error=404

    it not working.

    But add this code to .htaccess of subfolder1.
    domain.com/subfolder1/ 404 error working fine, but the domain for subfolder1 not working, 550 error display.

    Please help me

Reply

You must log in to post.

About this Topic

Tags

No tags yet.