'*' How Do I Edit my WEB ADDRESS Extension?

5 replies
  • WEB DESIGN
  • |
Guys, if you could please help me,

how I do convert luxlivinonline. com/blog.html

to just luxlivinonline. com/blog


Your time and effort is highly appreciated.
#address #edit #extension #web
  • Profile picture of the author gimmick
    Your blog page is a HTML page which needs a .htm or .html extension. I dont know how to get around that.
    {{ DiscussionBoard.errors[250329].message }}
  • Profile picture of the author Lloyd Buchinski
    I was trying to werk (no, that's the way it should be spelled) this out
    for awhile and it was surprising how hard it was to get the details laid
    out clearly and simply from on line information, so now that I do have
    it, I might as well pass it around. I'm certainly not an expert and if
    anyone wants to add any details or options that would be good
    information.

    The simplest way is to use folders instead of pages but I have read
    comments that suggested your pages loose a bit of status doing this.
    It can also be done using htaccess and a few other ways. Anyway,
    here is the simplest way.

    First go to the public folder. For any file that you want an
    extensionless url, create a folder with the same file name, but
    without the extension. Eg if the page is somesite/bike.html create
    a folder called "bike".

    Copy the file bike.html and put it in the folder "bike", but rename
    it there to index.html.

    If you use an external style sheet, copy that into the same folder.
    It has to keep its name.

    If you want your internal links to link to the extensionless urls,
    go through the internal navigation and take off the .htmls. (It
    is just a bit too easy to take off one character too many, or one
    not enough doing this. Make sure you have had your coffee.)

    At this point you will have 2 sets of files and your links will
    work with the .html with one set, and without the .html with the
    other set. If you don't need the site to work both ways you can
    delete one set, but unless you have large files, it doesn't hurt
    to leave them in place, at least for awhile until you are sure
    everything is working well. If you do have sites linking to you
    with the .html links already, you can just leave them be.

    If you have a second set of files under the www folder you might
    want to repeat the process for that url.
    Signature

    Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat

    The KimW WSO

    {{ DiscussionBoard.errors[250607].message }}
  • Profile picture of the author smddev
    Creating a folder named "blog" will be the answer.
    And rename your blog.htm file to index.htm in this folder
    {{ DiscussionBoard.errors[325227].message }}
  • Profile picture of the author wyvern
    Once you do that, don't forget to do a 301 permanent redirection of blog.htm to /blog/index.htm. That is assuming that the original website has been up for awhile....if it's brand new, don't bother with the redirect. This will allow the search engines to realize that the new page is the same as the old.

    Ken
    {{ DiscussionBoard.errors[347079].message }}
  • Profile picture of the author Andy Hart
    Im sure you can do that in the .htaccess file, but its not my area

    thanks
    andy
    Signature

    I'm On Google + ------------- and of course Also On Twitter

    "The only thing thats keeping you from getting what you want is the story you keep telling yourself about why you can't have it"- Tony Robbins

    {{ DiscussionBoard.errors[348556].message }}

Trending Topics