programguru Posted February 10, 2009 Share Posted February 10, 2009 Is there any way to config an .htaccess file to auto redirect to a specified file also having exceptions? For example, I only want people to see: index.php no matter what url they enter. So if I entered: domainname.com/otherpage.php, I would simply be redirected to index.php. This should apply to ALL files, sub folder, sub files, etc under the .htaccess directory. And also have directory and file exceptions? Meaning let's say I set an exception to exceptionpage.php, and that page will display OK if domainname.com/exceptionpage.php Is this possible with .htaccess mod_rewrite? Quote Link to comment https://forums.phpfreaks.com/topic/144668-htaccess-redirect-and-exceptions-is-it-possible/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.