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? 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
Archived
This topic is now archived and is closed to further replies.