Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Removing .html using folders

  • 06-07-2012 05:53PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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