How to Redirect Folder with 404 .htaccess - without httpd.conf?
Posted
by elmaso
on Stack Overflow
See other posts from Stack Overflow
or by elmaso
Published on 2010-04-06T19:23:11Z
Indexed on
2010/04/06
19:53 UTC
Read the original article
Hit count: 298
Hello, I have no access to the httpd.conf. How can I redirect the users if the type one folder more like -> http://www.example.com/folder/folder2/ --> redirect 404 to the main page.
The users should only have access to this root http://www.example.com/link+custom1+custom2/
and if they type something like that http://www.example.com/link+custom1+custom2/onemorefolder/orTwo/ --> redirect
how can I do that only with .htaccess and without php?
© Stack Overflow or respective owner