Can someone explain how this works without linking to a .php or .html file?

Discussion in 'HTML & Website Design' started by yesyoucant, Dec 13, 2010.

  1. #1
    Hello,
    I am trying to figure out how this guy's web site (and i'm sure many others) does not have the kind of links I am used to creating to navigate within a web site. For example, if you click on any of the menu items on the top right hand of the screen, rather than going to awebsite.com/print.html it goes to awebsite.com/print/ and then DEFAULTS to the first line item. has the designer put an index file within each folder so that it automatically defaults to that? If anyone could shed some light I would GREATLY appreciate it! thanks in advance
    amanda
     
    yesyoucant, Dec 13, 2010 IP
  2. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is a new folder , and in that new folder you put your files : html php etc.
    If you use Filezill to upload your files an ex.: Your site have a folder with the name "web" open your web folder, and in that folder create another folder and put your files .html .php is simple.

    You'll have something like this : yoursite.com/newfolder/filename.html
     
    iulzi, Dec 13, 2010 IP
  3. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Well I understand that part, but when you mouse over the links to other pages within the site, they link to yoursite.com/newfolder/ ... there is not html, php that is evident, at least to me..
     
    yesyoucant, Dec 13, 2010 IP
  4. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Look :

    http://benhulse.com/print/
    http://benhulse.com/print/index.php


    If you want to see that is the same , create a folder , a demo folder yoursite.com/demo/ and will be the same , but if you put yoursite.com/demo/index.php you'll see the same conten.

    This can be created to in wordpress with category yoursite.com/category/demo/ you can delete category and youll have only yoursite.com/demo/
     
    iulzi, Dec 13, 2010 IP
  5. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This is becouse in the menu, he have put that url ( is better for seo ) to get PR for yoursite.com/demo/

     <ul id="nav">
    
        <li id="identity"><a href="../../identity/" title="identity">identity &amp; logo design</a></li>
        <li id="print"><a href="../../print/" title="print">print design</a></li>
        <li id="webActive"><a href="../../web/" title="web">web design</a></li>
        <li id="photography"><a href="../../photography/" title="photography">vancouver photography</a></li>
        <li id="apparel"><a href="../../apparel/" title="apparel">apparel design</a></li>
    
        <li id="video"><a href="../../video/" title="video">video</a></li>
        <li id="etc"><a href="../../etc/" title="etc">etc</a></li>
      </ul>
    HTML:
     
    Last edited: Dec 13, 2010
    iulzi, Dec 13, 2010 IP
  6. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #6
    ahhh, I get it now!! Thank you so much for your help...I appreciate it!
     
    yesyoucant, Dec 13, 2010 IP
  7. helloguys12345678

    helloguys12345678 Greenhorn

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #7
    helloguys12345678, Dec 13, 2010 IP
  8. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    http://benhulse.com/print/

    before you write something, visit the website to see how is it.
    In every folder he have the files php. ( index.php / test.php ).
     
    iulzi, Dec 14, 2010 IP
  9. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #9
    iulzi is correct.

    In every subfolder of that site is an index.php
     
    CSM, Dec 14, 2010 IP
  10. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Look, someone who knows. Thanks / Gracias CSM.
     
    iulzi, Dec 14, 2010 IP
  11. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #11
    De nada, amigo.
     
    CSM, Dec 14, 2010 IP
  12. helloguys12345678

    helloguys12345678 Greenhorn

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #12
    This is only true for this particular website (http://benhulse.com/), the OP is asking how it's usually done in other websites. Most websites use mod_rewrite to remove the .php from their site so that http://website.com/print/ is actually not in the print folder or http://website.com/contact is actually not in the contact folder.
     
    helloguys12345678, Dec 17, 2010 IP
  13. SeabirdScripts.com

    SeabirdScripts.com Greenhorn

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #13
    SeabirdScripts.com, Dec 19, 2010 IP
  14. helloguys12345678

    helloguys12345678 Greenhorn

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #14
    helloguys12345678, Dec 19, 2010 IP
  15. iulzi

    iulzi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Read!

    You understand? He don't ask you how can be don , only want to know for that site.
    Read all the answers!

    Can be done with .htaccess ? yes, but this is not his question.
    Or want a coin? Becouse you know something about htaccess haha
     
    iulzi, Dec 19, 2010 IP
  16. yesyoucant

    yesyoucant Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #16
    Thanks everyone - I don't know anything about .htaccess but I see this is "standard." I'll look into it. Thanks again!
     
    yesyoucant, Dec 20, 2010 IP