Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/97020-need-a-little-redirecting-help-i-think/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.