Jump to content

.htaccess redirect


BuildMyWeb

Recommended Posts

i have the following redirect inplace in my .htaccess file

Redirect /dir/warranty-registration.php http://mydomain.com/warranty_reg.php

 

it seems to be working correctly.  is there any case in which someone putting in the old URL of "http://mydomain.com/dir/warranty-registration.php" would not be redirected?  something to do with their locally stored DNS or something?

Link to comment
https://forums.phpfreaks.com/topic/267335-htaccess-redirect/
Share on other sites

The DNS has very little to do with with this. If you were doing subdomain redirect, ok it may, but it does not appear that way.

 

To answer your question, no. As long as they are not aggressively caching it should be fine. What you may want to do is make the redirect a 301 (premenant)

 

Redirect 301 /dir/warranty-registration.php http://mydomain.com/warranty_reg.php

Link to comment
https://forums.phpfreaks.com/topic/267335-htaccess-redirect/#findComment-1370972
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.