How can i change the url into a .hlml link ?

Discussion in 'HTML & Website Design' started by eLeSlash, Apr 19, 2009.

  1. #1
    eLeSlash, Apr 19, 2009 IP
  2. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #2
    To do this you are going to need to use mod_rewrite. There are many tutorials online if you choose to google it.
     
    ryandanielt, Apr 19, 2009 IP
  3. shazi_786

    shazi_786 Member

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Apache mod_rewrite.
     
    shazi_786, Apr 19, 2009 IP
  4. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Damn its so complicated , is there someone experienced who can tell me the exact steps to accomplish it?
     
    eLeSlash, Apr 19, 2009 IP
  5. zelphics

    zelphics Active Member

    Messages:
    766
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    68
    #5
    if you want to do it an easier way you can just add an index.html to each directory =p
     
    zelphics, Apr 19, 2009 IP
  6. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #6
    how come , it works?
     
    eLeSlash, Apr 19, 2009 IP
  7. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #7
    anyone knows what zelphics is talking about?
     
    eLeSlash, Apr 20, 2009 IP
  8. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #8
    I dont think he even knows what he is talking about. You can not add an extension to a directory. Like I said previously, you will be able to find out how to do it using mod_rewrite in google. This is your only way to accomplish this.
     
    ryandanielt, Apr 20, 2009 IP
  9. Sparx-Media

    Sparx-Media Banned

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    As others have said you are going to need a Mod-Rewrite.
     
    Sparx-Media, Apr 20, 2009 IP
  10. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #10
    Damn its so complicated, how can a beginner get it done?
     
    eLeSlash, Apr 21, 2009 IP
  11. ltimranjaved

    ltimranjaved Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    my problem is somewhat like the same,i have uploaded a page whose extension is .htm
    but whenever i write write its address without .htm extension it give error.
    I want that in address bar i should not write the extension with the page.
    here is my link
     
    ltimranjaved, Apr 21, 2009 IP
  12. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #12
    You have to make sure that mod_rewrite is enabled on your server.
     
    ryandanielt, Apr 21, 2009 IP
  13. sizzlefire

    sizzlefire Member

    Messages:
    397
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    35
    #13
    You can do this with .htaccess, just google "mod rewrite .htaccess"
     
    sizzlefire, Apr 21, 2009 IP
  14. wallarookiller

    wallarookiller Active Member

    Messages:
    647
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #14
    Tell you what I'm bored pm me both of you and we'll talk.
     
    wallarookiller, Apr 21, 2009 IP
  15. brianconor

    brianconor Peon

    Messages:
    192
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You guys need to use .htacces file to solve this. Search on google to how to use this.
     
    brianconor, Apr 22, 2009 IP
  16. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #16
    wallarookiller i pmed you please answer. Or someone is willing to help me online rewrite my urls into .html ?
     
    eLeSlash, Apr 23, 2009 IP
  17. B'd

    B'd Peon

    Messages:
    475
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #17
    If you can give your contents of .htaccess file located in the root of your site, i might help you.
     
    B'd, Apr 23, 2009 IP
  18. gummyworms

    gummyworms Active Member

    Messages:
    126
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #18
    ok you guys are making too complicated. Lets do this in html with some cheats and short cuts

    1. have a html page called Jocuri-cu-Masini.html in http://jocurii.info/category/1/ directory

    2. in it do this

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://jocurii.info/category/1/Jocuri-cu-Masini">

    This will redirect to your directory in 0 seconds, the visitors will not notice a difference at all.

    There all done, all html pure coding, no server mess, no php, nothing at all

    Ask if you need help
     
    gummyworms, Apr 23, 2009 IP
  19. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #19
    Ok but i need the rewrite for the seo , visitators dont give a damn about the url of a website , if i rewrite my urls .html it will boost my search engine rank position.
     
    eLeSlash, Apr 23, 2009 IP
  20. eLeSlash

    eLeSlash Active Member

    Messages:
    1,233
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #20
    Did not find the page called Jocuri-cu-Masini.html ... ???
     
    eLeSlash, Apr 23, 2009 IP