monkeybidz Posted December 2, 2007 Share Posted December 2, 2007 I am using a 301 redirect in php and it works fine when using the web, but when you try to view through a mobil phone or other device, it does not follow the redirection. <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.mysite.com/otherfolder/index.php"); exit(); ?> Link to comment https://forums.phpfreaks.com/topic/79764-php-301-redirect-help/ Share on other sites More sharing options...
mr_mind Posted December 2, 2007 Share Posted December 2, 2007 This is a bad method of doing redirects. What i would do is a .htaccess file with a redirect. this the server parses before showing the page. and therefore you would not need to worry about a phone with ridirects disabled. example: Redirect 301 /oldpage.html http://www.example.com/newpage.html Link to comment https://forums.phpfreaks.com/topic/79764-php-301-redirect-help/#findComment-403947 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.