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

Removing .html using folders

Options
  • 06-07-2012 5:53pm
    #1
    Registered Users Posts: 2,789 ✭✭✭


    If I've got a simple site 10 pages, would it be feasible to to remove the visible extension by placing each page in its own folder eg...

    about_us.html

    becomes...

    about_us/index.html

    (making the link www.example.com/about_us)

    Or would I be better off looking for some kind of server side solution?


Comments

  • Registered Users Posts: 1,082 ✭✭✭Feathers


    Yes this is possible & is the 'easiest' solution. What you have to watch is if it will affect your SEO, as you page is now available in two places —/about_us and /about_us/index.html, so you could get 50% of your views to each rather than 100% to one with higher page rank.

    There is a file that you can create called a .htaccess file (if you're using an Apache server) — just a plain text file with no name & the extension .htaccess; you can use this to set up rules for your site, like rewriting all incoming requests from index.html to /

    Here's some more info about it.

    Just to note as well, with page names, using a hyphen as a separator is better than an underscore. Google will treat hyphenated words individually and use them as key words to your page, so "about" and "us". The underscore does the oppoiste & is treated as "about_us".


Advertisement