WordPress.org

Forums

error 404 for subfolder (4 posts)

  1. qdungeng
    Member
    Posted 1 year 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 1 year ago #

  3. qdungeng
    Member
    Posted 1 year ago #

    Not working, please help me

  4. qdungeng
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.