Jump to content

Need a little help with forwarding or just changing the www to something else...


Padgoi

Recommended Posts

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.