htaccess: Custom redirect from any folder to home.

Posted by xRobot on Stack Overflow See other posts from Stack Overflow or by xRobot
Published on 2010-05-14T14:19:42Z Indexed on 2010/05/14 14:24 UTC
Read the original article Hit count: 171

Filed under:
|

I have site with these files and foldes:

/index.php ( that include php files contained in folder1 and folder2 )
/config.php
/folder1/
/folder2/

I want this:

when a user point to any folder ( folder1, folder2 or any other folder ) then he is redirected to index.php

How could I do that ?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about apache