Jump to content

redirect


ngreenwood6

Recommended Posts

i'm not a master with the .htaccess files coding, but i belive if you add "deny from all" to your .htaccess file, and then make a php page for the 405 error code, also defined by the htaccess file, you can then redirect in the 405 file...

So, add this to your htaccess

 

deny from all

ErrorDocument 405 http://domain.com/my405.php

 

Then ake the 405 php file redirect...

Link to comment
https://forums.phpfreaks.com/topic/180071-redirect/#findComment-949988
Share on other sites

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.