Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Dropping .html from printed links

Options

Comments

  • Registered Users Posts: 3,594 ✭✭✭forbairt


    if you're on linux and can change your .htaccess files then yes there is ? :D

    you're looking at wanting mod rewrite rules


  • Registered Users Posts: 489 ✭✭Pablod


    a simpler option that should work depending on your host (and if you are ok with changing the name of your mylink.html)
    Is to set up a sub-folder (sub-directory)

    Create a new folder in your site and call it mylink, then place your mylink.html file in this folder and rename it to index.html

    So when you type www.mysite.com/mylink it will default to the index of that directory

    Hope this helps


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    Pablod wrote: »
    a simpler option that should work depending on your host (and if you are ok with changing the name of your mylink.html)
    Is to set up a sub-folder (sub-directory)

    Create a new folder in your site and call it mylink, then place your mylink.html file in this folder and rename it to index.html

    So when you type www.mysite.com/mylink it will default to the index of that directory

    Hope this helps

    problem with this method is that if you're referencing /mylink/ and /mylink and /mylink/index.html ... you're potentially going to dilute your link love ... so you'll have to sort that as well


  • Registered Users Posts: 4,468 ✭✭✭matt-dublin


    as long as you point all your hrefs referencing that page to /mylink/ you should be ok though right?

    i would also suggest /my-link/ as well, break it up into keywords.

    I could be wrong though


Advertisement