Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other URL File Path

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #33220
    Ben_Derby
    Participant

    I am having a problem finding out how to get rid of the junk after the domain name.

    For instance it says in the URL bar “http://www.harrythefish.com/other%20sites/Rollerston/Home.html”

    However I would like it to say “http://www.harrythefish.com//Rollerston/”

    Any Ideas on how I would do this?

    Thanks :D

    #82086
    TheDoc
    Member

    I’m sure you could use some .htaccess to get rid of the ‘other sites’, but I would just make Rollerston a subdomain, like this:

    rollerston.harrythefish.com

    #82087
    Ben_Derby
    Participant

    how do you add a subdomain onto the server ?

    #82090
    TheDoc
    Member

    You’ll have to contact your hosting provider, everyone is different. There should be a FAQ that you can check out. It’s usually very simple.

    #82092
    Ben_Derby
    Participant

    ok thanks :D

    #82170
    DboG
    Member

    Honestly as simple as your site is, you probably don’t need to go through setting up a subdomain. If you physically move the “Rollerston” folder up one level in your site file structure, It will go from “http://www.harrythefish.com/other%20sites/Rollerston/Home.html” to “http://www.harrythefish.com/Rollerston/Home.html” (though depending on the coding you may need to fix a few file paths in the code).

    Then if you rename Home.html to index.html (fixing links to that page) someone could type “http://www.harrythefish.com/Rollerston/” and it would hit the right page.

    However, as Ben_Derby said, using .htaccess is really the clean way to do it. It would allow you to set up forwarding from the old URLs so any links you have to your site don’t break. And you can set up other clean URLs like “http://www.harrythefish.com/Rollerston/Contact/” using mod_rewrites. It takes a little bit of know-how, but it’s not a complicated process.

    #82171
    chrisburton
    Participant

    It’s quite simple as @DboG pointed out. Inside of your Rollerston folder, rename home.html to index.html

    In the snippets section, check out Pretty URL’s as that is your best way to go. It saves unnecessary bulk folders and what not.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Other’ is closed to new topics and replies.