Problem with link forwarding

Discussion in 'HTML & Website Design' started by bluefox21, Jul 31, 2006.

  1. #1
    Alright, as many of you might know, i'm a newbie and a total disgrace. Right now, i was starting to make my own page in HTML (i suck), and since i don't know a lot, i'm using Frontpage (i suck indeed) normal view to help me. Now, since i don't want a big index, i made it on 6 pages. So i basiclly copied the index 5 times and then edited it according to what every page has to show.
    The problem is that when i copied the index, the names of the files were "copy (#) of index" and i edited them to their respective names. After that i edited the links of "go to page.." and everything worked out fine.
    But when i run the site on the explorer, says "page not found" when i change the page, because it forwards to, for example "copy (2) of index" and not to "index-2".
    If you can still write while laughing, can you give me some advice on how do i solve it?:confused:

    (or if i should better trash all and start reading some php books....:eek: )
     
    bluefox21, Jul 31, 2006 IP
  2. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Don't trash it all yet. As a start, look at your pages in html view and find the links which will show as <a href="some.page">next page</a> and change some.page to what it should be.
     
    50plus, Jul 31, 2006 IP
  3. bluefox21

    bluefox21 Well-Known Member

    Messages:
    440
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #3
    That's fine, in the HTML code, the links go to where they should be. I don't know if i made myself clear, but i didn't upload the site to the web, i'm using the option from frontpage only. Maybe when i upload it to the FTP, links head where they should?
     
    bluefox21, Jul 31, 2006 IP
  4. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not familiar with frontpage but I know html. If the links in <a href= show the correct page name then it should work.
    Give it a try on the server and see how it goes.
     
    50plus, Jul 31, 2006 IP
  5. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'll assume you're on a windows machine. Can you give an example of one of the anchor tags (<a href="blah.html">Go here</a>)?

    A couple things to check could be if it is including the drive path (e.g. "c:\testsite\page.html"). If you are working on the site on your computer and testing it locally before uploading, you should probably use relative links. That means, if all of the files are in one directory, the href="" part should just include the file you are linking to and not directory information. If your main page is in a folder and each of the other pages are in a folder called "blah" then your links would be href="blah/page.html" or something to that effect. Check that you are using forward slashes (i.e. "/").

    You could try to create a test folder online to play around with it there. When clicking on the links in your browser, check where it is trying to load the page from to see how that is different from where the page really is. Are you using spaces in the folder names? Try changing spaces to %20. For example. If your folder is "test site/," your href would be href="test%20site/page.html"
     
    Gordaen, Jul 31, 2006 IP
  6. [*-AnOnYmOuS-*]

    [*-AnOnYmOuS-*] Active Member

    Messages:
    253
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #6
    You might also try, next time to just copy the code, not the file. Dunno why, but I prefer it this way as there were a couple of problems taht arised when copying files on some OSes.
     
    [*-AnOnYmOuS-*], Jul 31, 2006 IP
  7. bluefox21

    bluefox21 Well-Known Member

    Messages:
    440
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #7
    yup. i should have done that, anyway, thanks for the feedback.

    Gordaen: yes, the code shows a href= index-"x" that it is the file where i want the link go to, so i'm assuming that the problem is because i'm using it in windows. I'll upload the files and see if the links work fine there (i think they should). Thank you!!
     
    bluefox21, Jul 31, 2006 IP