itssami
Jan 5 2006, 08:30 AM
| | Hello.. I have made a website,suppose it has 20 pages and it is linked to pages.It is saved on my computer.Im confused about hyperlinks.I mean how i should create them , when i will upload that site. For example. n index page I have 2 pages links, page 1 and page 2....On computer , they will be linked like C:\page1.htm and C:\page2.htm , but when i will upload them their links will be something like http://mysite.com/page1.htm and http://mysite.com/page2.htm , okay , if the pages are very few then i can give think that its http adress will be like that and can give it already to the index file on my computer but if i have many pages then it will be hard for me to think which are the http adress of them when i will upload them , so how i can manage this and how i should give hyperlinks to pages .Please let me know about this problem.Thanks. |
Reply
mayank
Jan 5 2006, 11:07 AM
Ok for this I'll suggest you to use the hyperlinks like this : Lets say you've made a folder in c: drive as website. Now, if you are storing your index.htm in that (c:\website\index.htm) and you've another page "page1.htm" which is stored in another child folder "pages" of "website" folder (c:\website\pages\page1.htm) And now you want to link page1 to index then in the html file use the link as HTML <a href="pages/page1.htm">click here to go to page 1.</a> I hope this clears up things!
Reply
Avalon
Jan 5 2006, 11:12 AM
This is something that seems to confuse a lot of people new to web design. The easiest way to sort out your linked pages is to use 'relative' links. A 'relative' means the link assumes the page being linked to is in the same folder as the page with the link. To do his keep all your pages in one folder, usually your 'root' folder often called 'public_html' on the web server. It also good practice to keep all your images for your pages in a separate folder called 'images' which is inside your 'public_html' folder. To link to a page in the same folder as the one with the link, you do not need to prefix the page name with 'www.yoursite.com', all you need is the page name like this... CODE <a href="page2.htm">Page 2</a> To use relative links for images you can do it in a similar manner, just prefix the image name with the folder name like this... CODE <img src="images/image1.gif"> If you make the same folder structure on your hard drive as on the web server, the site will work exactly the same on your hard drive and the web server. Relative links will work for pages in all folders provided you prefix the image or page name with the relevant folder name where necessary. [edit] mayank posted his message as I was writing this one, we are both saying the same thing, I have just given more explanation.
Reply
jlhaslip
Jan 5 2006, 04:47 PM
Itsammi, Avalon, and Mayank: Here is a fairly complete guide to Linking on your website. It is nicely written and easily understood. linking htmlThe only thing it doesn't explain are 'server absolute links' which is a whole other topic for discussion. Since they are available only on the Apache servers like the one here at the Trap, I don't suggest using server absolute links since your site may someday be on another server. CODE http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimerP2.html#LI2
This is the link that I have placed above. It is called an 'absolute' link because it references an html document directly (absolutely) by indicating the server address (http://archive.ncsa.uiuc.edu), the specific folder and the chain of folders (/General/Internet/WWW/), a particular file (HTMLPrimerP2.html), and a 'named anchor' within that file (#LI2). I only use absolute links to pages outside of the web site that I am working on. Inside the web site, relative links are recommended. That way, the file structure stays constant whether it is on the server or on the 'local host'. Relative links are also described in the document. They are indicated without the 'http' part and are 'relative' to the calling file's address. As Avalon pointed out above, it is typical to have the Images in their own folder at the root level and his info is perfectly fine. I just wanted to add that in a more complex file/folder structure, there is way to navigate the structure using 'parent folder' notation by including "../" or "./"'s in front of the file names to navigate around the site, but that might be a bit much for now.
Reply
Similar Topics
Keywords : give, hyperlinks, site, upload
- Can't Login To Any Software On My Site
anyone know how to fix? (3)
I Need Help With Setting Up My Site, Made Using Java
any help would be appreciated (5) I just got web hosting approved and I want to host the site I created using Struts framework.
I'm a complete newb when it comes to web hosting, so I need a little help. Is there a tutorial
that covers this subject? I apologize in advance if this question was already answered, but
I've been unable to find the answer anywhere. One thing I have to note is that I need to know
absolute address of the uploaded files in order for my application to work. Is this even allowed?
Any help with hosting of Java applications will be appreciated.....
No Site Access
(4) It was working the day before yesterday and then it started giving me error messages about not being
able to access the site. I can't access cpanel either. Neither page ever loads. I don't
have this problem with any other internet pages, just my site stuff on Trap17. My site's at
www.jzambrano.trap17.com btw. This is one of the few times I'll need it up for sure so I'd
appreciate if the issue can get fixed in the near future. ....
Can't Access My Site An Cpanel
already did some sugested things (4) I still can't get to my website and cpanel, Tings I did: requested xisto to unblock my ip
cleaned my cache/cookies Did this with both IE and FF When I am @ my dads house he can acces my
website. So I guess it is still an ip problem. I did read some posts but couldn't find a
solution. Thx in advance,....
Can't Access My Site....weird Issue
(5) Okay, so last night everything worked fine. I loaded up cpanel, fixed issues with the site after the
database move, etc. Today I'm unable to load up the site. It just keeps giving me ping
timeouts. With what I'm being told by others it is only me having this issue with my site, and
yet there have been 0 changes to my pc between it working and not. I have tried multiple times
during the day with no luck. Along with this, if I load my website using a proxy service then I do
not have any issues. The only time it will not allow me to access it is if I am "using" my....
Increase Upload Limit
(5) I had this setting done before, but I replaced the file and need to know how to do it again. That
is, increasing the max upload limit. It currently is set to 2mb(on my forum for uploading), and I
would like to increase it. I think that the limit is software related and not host related. How
would I go about setting up a limit greater than 2mb? Thanks in advance.....
Reset My Site Pelase
read for more info (6) Can you just reset my cpanel / website FTP and all to how it was when I got it new please? Don't
change any passwords, just make it so it's like brand new again. thanks --why? because I have
some files in public_HTML that I am trying to delete even after I give it 777 it says permission
denied so please reset /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
alt="smile.gif" />....
Site Help [resolved]
Showing good on one site but but here on trap17 (6) Okay here is the problem. My site www.echo-of-thunder.trap17.com is not showing any graphics,
Background header logo nothing. Uploaded them all. now here is the kicker to this. it all shows just
like it it is supposed to show up on my old host What am I doing wrong here.....
My Site Fails To Load
My site always times out, and fails to load (16) Hey all... Whe I try to access my site, it always times out, when I try to ping, it does the
same... DNS records are accessible, and I get all my emails for the domain (todorowww.net)... I am
hosted on Gamma server, and I can access it, and get that cPanel page... But, when I try my site, it
won't load... Is there some problem with the server or something? FTP doesn't work either...
This is the case for a few days now, at first I thought it was just a temporary error, but it
appears not to be... I have avout 20 credits left, so that shouldn't be the issue.......
I Bought A Domain Name Through Godaddy And I Need To Know How To Point It At My Trap17 Site Help Plz.
(2) I would like to point my .com at my forums on here but am unsure how to do it. BTW my site is
http://racuria.trap17.com/forums ....
Where Does That Noise Come From?
My Trap 17 web site beeps (6) I am posting this here rather than in the 'Web design' topic as it seems to be something
which happens exclusively to my Trap 17 web site. When i have my web site open, which you can find
here , every so often (quite regular actually) a short and high pitched beep is sounded. At first I
thought it had something to do with my sound card or my PC, but recently I discovered it only
happens when I have my site open. It does not matter which page of the site I have open, or whether
the page has multimedia embedded in it, I get it regardless of the page I am on. Has....
Site Down After Server Transfer
(3) Hello, I am wandering why my site is down after server transfer. I cannot access control panel
also. Few days ago I was able to ping the site however now I cannot do that either. My domain name
is: zedsi.com however my main traffic is comming from my blog: blog.zedsi.com Any suggestions why
it is still down would be appreciated. On the other hand I have checked on
www.xisto.com/network-status and gamma is online. Thanks in advance. Best Regards, Hitmanblood....
Site Back Online, But....
Works on anyone's machine but mine. (20) I got a reply from Xisto today that my site was up and running again. Yet, when I surf to it, it
will not load, also, my email client keeps telling me the POP3 server (the one related to my domain)
timed out. My Cpanel will not open neither. On my son's laptop (on the same network, hence same
IP address) the site loads immediately. Has anyone got any idea what the problem my end could be?
Thanks.....
Server Issues? Web Site Down? Cpanel Access?
Server Migration issues to report. (48) I tried downloading my email from website this morning and Thunderbird said it couldn't access
it the server. Then I tried loading my website - to no avail. Does anyone have any idea what's
going on? Is anyone else experiencing this? Seems like this is the second time this spring this has
happened. Is an upgrade going on, or something? Thanks in advance for your help! ....
Wordpress Backup For A Server Move
backing up a Wordpress site (2) i have question: how can we backup wordpress from fantastico...is it possible to backup and move
it to new host if you want?....
My Site Is Down... Again [resolved]
(4) My site and forum have been down for the last 4 hours. It appears to be the php scripts only that do
not work, as every other part of my site is working okay. But my site is a php powered CMS and
forum. This down time has actually been happening a lot. Its particularly frustrating when trying
to add content on the site(joomla), and the page times out and everything gets lost and I have to
start over again. It is hard to have a community when the site is never working. When is my site
going to come right? And why all the down time? I noticed that in server status the ....
Thinking About New Site, But...
How? (5) Alright, here's the deal: I'm thinking about creating a new site called
www.USACompanies.com (or at least the name I'm going with right now) to provide Americans with
info about how many employees of companies are Americans, what percentage of total employees of
companies are Americans, what the average salaries of workers are, what CEO's are paid, what
benefits companies give workers, etc. Basically an informational site allowing Americans to support
companies that are good for America. Anyway, here's the dilemma: I'm not sure whether to
set ....
Some Pages On My Site Won't Even Load..
(6) Ever since today, my site has been working just fine. I'm maintaining the amount of points I
need, and the server status has been and still is fine. However, a while ago I tried to access my
site and it wasn't loading. When I loaded the root URL, it worked fine though. I went to the
file manager and noticed that the file I was trying to previously access was .php, and the index
file at my root URL was .html. I deleted the index.html file and made a index.php file, then tried
loading it again. Safari gave me the following message: QUOTE Safari can’t ope....
Cutenews Alert!~ Your Site Might Be Hacked!
(14) Ok so i was going through my email inbox, and i received a very scary email from my old host,
starszz.com saying of this really dangerous thing going around with cutenews users.. ok let me
summarize it hackers somehow found a way to hack your site by accesing your search.php file on your
cutenews directory i googled into it, and there is a couple of Big sites that were hacked, and its
adviced for you to delete the search.php file of your cutenews directory immediately, i dont know
how this can be done, but imjust warning you i deleted my search.php file just in case....
How To Publish My Site Through Expression Web
i don't know how anyone could help me (4) i'm using expression web and i like to publish my site directly here problem is i don't know
how can anyone help me....
Strange Site Problems
(2) This morning i ran out of credits, but I immediately got them back up to 7. All day I've been
trying my site, and it keeps timing out, and on the odd occasion comes up with a MySQL error. I was
just able to login to my cpanel, and my space usage was 550mb. Yesterday is was approximately 256mb,
and i didnt upload anything. I had to delete files to get it back down to 470, but I cant find what
has made it so big. Now I get a MySQL error on my forum. What do I do?....
Site Down-up-down-up [resolved]
(12) Can someone please tell me why my site every once in a while can't connect...then 10 minutes
later it works...then another time it goes off again....then works then doesn't work then works
then Doesn't work!!! Does this all the time, it is working right now but didn't
a few minutes ago..I tried on both my computers, all browsers... It is really making me mad and
needs to be fixed so the sites are up all the time !....
My Site Wont Show Up
Help! (4) Hi, I'm new in this hosting service but I have an experience in handling a site. First off, my
problem is my site is not showing up. Even though I have the things settled. The only thing I did is
that I delete some numerous files in my FTP because I dont know how to delete my SMF forums because
when I want to give more scripts that are installed in Fantastico a try; so I delete some files and
folders there wishing that could help in deleting SMF. If I've deleted some files and folders,
then maybe that's the problem. But I'm not sure what to do right now....
Where Do I Upload My Ftp Files? [resolved]
As in, which directory? (1) I recently got approved for hosting. I have an account right now, but I don't know which
directory to post my FTP stuff in. (I don't know if this is in support or not; the search
results didn't return anything.) I remember with my last host that had CPanel that you had to
upload it into the "public_html" folder. So I do that, or do I just upload it into the root
directory? Thanks in advance! (EDIT: Oh, never mind, it is /public_html.)....
Site Keeps Blacking Out/disappearing
(3) I dont know if this has happened to any other sites, but today, my addon-domain (adminhelpline.com)
has been timing out randomly, taking ages to load, etc. ive only been able to access it half the
day! I havent used anywhere near my limit of bandwidth, or file diskspace. I notice the
Trap17.com website loads fine, so I am a bit confused about this /blink.gif"
style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> Any ideas why this
keeps happening? Thanks /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
alt="smile.gif" />....
Site Gone? [resolved]
Aeara learns the hard way again... (7) Hello Staff here's my situation: I haven't posted since tuesday and I believe I had 4 or 5
days left today. I had 0.23 Hosting Credits left, yet I posted a few times just today...to recieve
5.88 hosted days again however the following quote is what I recieved when I typed for my site url.
QUOTE The requested URL could not be retrieved
-------------------------------------------------------------------------------- While trying to
retrieve the URL: http://www.legendsofhyrule.trap17.com/zelda The following error was
encountered: Unable to determine IP....
I Cannot Access My Site. [resolved]
Am I blocked by Firewall? (13) Hi, is there a server problem? All of a sudden I cannot get through to
http://www.vlaanderen-flanders.org.uk anymore, nor can I FTP. Could someone check this out,
please?....
403 Forbidden Error When Accessing My Site
(10) umm this is a problem that i have been looking in other topics to try to fix but i can't seem to
find a answer to what i lookin for. I got my site workin again the other day ok and so i went on to
see it (so i can make more changes) and when i got there i got this QUOTE Forbidden You
don't have permission to access / on this server. Additionally, a 403 Forbidden error was
encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at
www.clansga.trap17.com Port 80 now i looked at everything and i can't seem to find t....
Help With Cutenews
How Can I Put It On My Frontpage Site? (4) I installed CuteNews on my hosting account and I can't figure out how I can put the news on my
site. Can someone help? Thanks alot!....
Help!!
Help me on my site.... (8) Sorry, I may seem like a total geek, but where should I upload my index page, and what should it be
named, and are page names case-sensitive? Thank you very much.....
Looking for give, hyperlinks, site, upload
|
|
Searching Video's for give, hyperlinks, site, upload
|
advertisement
|
|