1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

site-url renaming

Discussion in 'HTML & Website Design' started by LucidNet, Jun 15, 2004.

  1. #1
    I noticed when i was going through DMOZ, that when you click on the categories it goes to www.example.com/example and not www.example.com/example/example.htm

    it only shows the directory and not the actual file, is there anything i can change to do this to a site? I have no idea where to start.

    Cheers
    Andy
     
    LucidNet, Jun 15, 2004 IP
  2. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    set up the folder within your site directory... for instance...

    http://www.example.com/example

    so in your site root you need to set up a folder called example...

    in that folder place an index.html or.cfm or .php or whatever...

    When you link to that folder (<a href="example">link text</a>) it will automatically go to the index file by default (you could also use default instead of index)

    Just like the main index (or default) file for your site...
     
    SEbasic, Jun 15, 2004 IP
  3. LucidNet

    LucidNet Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok cheers, i thought about doing that... but for some reason thought there would be a better way...... thanks for confirming it. Im off to go make my changes now :)
     
    LucidNet, Jun 15, 2004 IP
  4. TechEvangelist

    TechEvangelist Guest

    Messages:
    919
    Likes Received:
    140
    Best Answers:
    0
    Trophy Points:
    133
    #4
    The default file for your directories is configured on your server. This can be set it up for any file name you want to use. Apache uses index.htm, index.html and index.shtml as the defaults. If Apache is configured with PHP, index.php is added. Microsoft likes to be different, so they add the default.* variations to IIS servers.

    Craig
     
    TechEvangelist, Jun 15, 2004 IP
  5. venam

    venam Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can change that with a code on .htaccess!
     
    venam, Jan 15, 2008 IP