Padgoi Posted March 20, 2008 Share Posted March 20, 2008 Ok, so right now, my website is located at www.website.com (obviously not real, just an example). I created a subdomain named hello so if you go to hello.website.com, it will take you to the index. Here's the problem. After I click a link on the index, it goes back to www.website.com/hello/link.php instead of staying as hello.website.com/link.php. How would I go about making it so it automatically forwards to hello.website.com/link.php, regardless of what links I click? Any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/97015-need-a-little-help-with-forwarding-or-just-changing-the-www-to-something-else/ Share on other sites More sharing options...
awpti Posted March 20, 2008 Share Posted March 20, 2008 Sounds like you're providing absolute links rather than relative links. ex; <a href="http://www.domain.com/hello.php">....</a> Where you should be using: <a href="/hello.php">....</a> We don't know without seeing the HTML. Link to comment https://forums.phpfreaks.com/topic/97015-need-a-little-help-with-forwarding-or-just-changing-the-www-to-something-else/#findComment-496509 Share on other sites More sharing options...
bobinindia Posted March 20, 2008 Share Posted March 20, 2008 Or maybe your link.php is not in the directory of hello.website.com Link to comment https://forums.phpfreaks.com/topic/97015-need-a-little-help-with-forwarding-or-just-changing-the-www-to-something-else/#findComment-496556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.