Reputation: 159
So I have my WordPress in a subfolder, /members/
and I have an .htaccess in the root folder with only these two lines:
DirectoryIndex /closed.html
ErrorDocument 404 /closed.html
When I go to mydomain.com/members/ it redirects to the closed.html page.
I would be very grateful for some help with this.
Upvotes: 1
Views: 46
Reputation: 785038
In your /members/.htaccess
add these lines on top to override directives set by parent .htaccess
:
ErrorDocument 404 default
DirectoryIndex index.php
Upvotes: 1