How do I link to other pages from my website?

HalfPastGone

New member
Apr 2, 2010
112
1
0
I'm a complete newb, obviously, and this is my first time using HTML. Wasn't sure if I should post this in the newbie section or here..

On my side menu I link to pages like Products, History, About, etc..

do i need to create subdomains all with separate code, or is there code within the main index that just creates a separate page

this is what i have now and it's just linking me to the "/Index of" area


<ul class="sidemenu">
<li><a href="http://home.domain.com">Home</a></li>
<li><a href="http://subdomain.domain.com">example</a></li>
<li><a href="http://subdomain1.domain.com">example</a></li>
<li><a href="http://subdomain2.domain.com">example</a></li>
</ul>
 


a subdomain is anyname.domain.com a sub folder is still a sub folder. the subdomain on a cpanel server will show the subdomain as a subfolder of the public_html folder..
 
Name your file index.html and you'll see it if you go to that link.

Don't even worry about subdomains at this point, just put everything in the same folder.

Spend a couple days here:

HTML Tutorial
 
i've got to be doing something wrong because that didn't even work

fz.jpg


if you go to the website is still goes to facts.coldmouthsores.com

rather than /facts.html
 
Seems like you managed to get things working - as your index page is active.

Now goto your sidebar search for the code

Code:
<li><a href="[URL="http://www.wickedfire.com/view-source:http://causes.coldmouthsores.com/"]http://causes.coldmouthsores.com[/URL]">Causes</a></li>
<li><a href="[URL="http://www.wickedfire.com/view-source:http://facts.coldmouthsores.com/"]http://facts.coldmouthsores.com[/URL]">Facts</a></li>
<li><a href="[URL="http://www.wickedfire.com/view-source:http://products.coldmouthsores.com/"]http://products.coldmouthsores.com/[/URL]">Products</a></li>

and replace it with..

Code:
<li><a href="http://www.coldmouthsores.com/causes.html">Causes</a></li>
<li><a href="http://www.coldmouthsores.com/facts.html">Facts</a></li>
<li><a href="http://www.coldmouthsores.com/products.html">Products</a></li>

Just to explain... a subdomain is like another domain installed on your server. Something like content.domain.com whereas a sub-folder is a regular folder like the one's you have on your computer - domain.com/content

Cheers
 
I wouldn't be putting each one in a subdomain.. bad from seo standapoint as each subdomain is only for each page... bad idea... but hey some people can only be told once...
 
Lol, you are probly the most newb I have ever seen.
 
you have:

<li><a href=http://causes.coldmouthsores.com">causes</a></li>

when you should have

<li><a href="http://www.coldmouthsores.com/causes.html">causes</a></li>
 
yeah i deleted the subdomains and changed the code for all that. here is what i have right now:

FileZilla:
fz.jpg


HTML:
code.jpg


and if you go to the website, and click on either "causes" "facts" or "products" it still goes to "facts.coldmouthsores.com"
 
The page has not been updated. Upload the right file. Your index.html should have that HTML code inside.
This is what is there now:
<h1>Sidebar Menu</h1>
<ul class="sidemenu">
<li><a href="http://www.coldmouthsores.com">Home</a></li>
<li><a href="http://causes.coldmouthsores.com">Causes</a></li>
<li><a href="http://facts.coldmouthsores.com">Facts</a></li>
<li><a href="http://products.coldmouthsores.com/">Products</a></li>
Change it.
 
fuck my life. thank you. i was assuming updating the file on my computer would update it, didn't know i had to replace it every time i changed something.