Jabop Posted April 10, 2008 Share Posted April 10, 2008 For example if someone types url.com into the nav bar on their browser, it goes to http://url.com How would it be possible to go about making an incomplete url like the example above go to http://www.url.com? I cannot find resolve to this :x Thanks for any assistance Link to comment https://forums.phpfreaks.com/topic/100438-redirecting-an-incomplete-url-to-wwwurlcom/ Share on other sites More sharing options...
awpti Posted April 10, 2008 Share Posted April 10, 2008 Check the $_SERVER superglobal and find the info you want there. print_r($_SERVER); And then use header();. Link to comment https://forums.phpfreaks.com/topic/100438-redirecting-an-incomplete-url-to-wwwurlcom/#findComment-513639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.