Jump to content

.htaccess redirect and exceptions - is it possible?


programguru

Recommended Posts

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?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.