Padgoi Posted March 20, 2008 Share Posted March 20, 2008 Ok, so I have a website and I created a subdomain for it called hello so if you go to hello.website.com, it will take you to the index page of the hello folder. In other words, instead of typing http://www.website.com/hello/index.html, you can just type http://hello.website.com and it will take you to the same place. Here's the problem... After going there, if you click a link on that index page, it redirects automatically back to http://www.website.com/hello so if you click a link to go to a page called fp.html, it will automatically redirect back to http://www.website.com/hello/fp.html. I need to make it so that regardless of clicking a link, it will stay as http://hello.website.com/fp.html or whatever page you click to. Any help would be greatly appreciated, not sure if this requires an .htaccess code. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/97020-need-a-little-redirecting-help-i-think/ Share on other sites More sharing options...
snipe7kills Posted March 20, 2008 Share Posted March 20, 2008 It sounds like it could be your links that are the issue not the sub domain... did you create this hello folder your self? or is it a script. if its a script check the settings that your have for it and make sure the domain in those settings are correct if you created it your self did u use "static" links (http://website.com/hello/file.html) or "relative" links (file.html)? if you are using static links i would have to say ive had nothing but trouble with them, and would greatly reconsider. if you are using a editor such as dreamweaver or frontpage try and find a setting that would allow you to use "relative" links. Quote Link to comment https://forums.phpfreaks.com/topic/97020-need-a-little-redirecting-help-i-think/#findComment-496514 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.