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(); ?> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.