SitePoint Sponsor

User Tag List

Results 1 to 13 of 13

Thread: url question

  1. #1
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    url question

    Hi,

    I'm not sure if this is the right place to post.

    I was wondering how people got nice url's on their sites such as:

    www.egor-k.com/portfolio/ as opposed to

    www.egor-k.com/portfolio.html

    Any advice or tutorial link will be greatly appreciated.

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Az
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rename portfolio.html to index.html
    and place it in a new folder called portfolio.

    A call to egor-k.com/portfolio/
    will now look for and display
    egor-k.com/portfolio/index.html

    Quote Originally Posted by mstwntd
    Hi,

    I'm not sure if this is the right place to post.

    I was wondering how people got nice url's on their sites such as:

    www.egor-k.com/portfolio/ as opposed to

    www.egor-k.com/portfolio.html

    Any advice or tutorial link will be greatly appreciated.

    Thanks

  3. #3
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Thanks JohnAz,

    A couple more questions.

    Whould that affect the search engine rankings - having every page named index.html.

    And if I have a floder called images would I have to call it like http://www.egor-k.com/images/bg.gif as opposed to me normally doing in like images/bg.gif or is there a simpler way to keep the short links such as that?

  4. #4
    Free your mind Toly's Avatar
    Join Date
    Sep 2001
    Location
    Panama
    Posts
    2,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what you might be looking for is a mod_rewrite tutorial.
    Community Guidelines | Community FAQ

    "He that is kind is free, though he is a slave;
    he that is evil is a slave, though he be a king." - St. Augustine

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Az
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didn't realize you're wanting EVERY page to be like site.com/name/

    For me, and what alot of others do is use directory structure for topical use. Such as yoursite/portfolio/gallery1.htm : yoursite/portfolio/gallery2.htm..
    This also aids in forcing you to have more content which in the long run will help more with ranking.

    As far as linking to images:
    /images/bg.gif will take tell the server to go up one level to find the folder 'images'.

  6. #6
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Toly, It looks like its used to make server side generated url's more user friendly. Would mod rewrite help with static pages like index.html portfoli.html etc?

    JohnAz,

    Yeah I only wanted the main 4 or so sections to display like that.

    So let me get this right if i had a link to my images in http://www.egor-k.com/portfolio/site/site/

    whould I have to link to an image like this? ///images/bg.gif or would it still stay as /images/bg.gif?

    Also is there a way to see your site locally. When I changed the links to images in dreamweaver they dont take effect but work fine online

  7. #7
    Free your mind Toly's Avatar
    Join Date
    Sep 2001
    Location
    Panama
    Posts
    2,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mstwntd
    So let me get this right if i had a link to my images in http://www.egor-k.com/portfolio/site/site/

    whould I have to link to an image like this? ///images/bg.gif or would it still stay as /images/bg.gif?
    /images/bg.gif would be fine because when you put an "/" in front of any directory or file, the server will start looking from the root.
    Community Guidelines | Community FAQ

    "He that is kind is free, though he is a slave;
    he that is evil is a slave, though he be a king." - St. Augustine

  8. #8
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Thanks a lot Toly, Us there a way to view my pages locally like this though?

  9. #9
    Free your mind Toly's Avatar
    Join Date
    Sep 2001
    Location
    Panama
    Posts
    2,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mstwntd
    Thanks a lot Toly, Us there a way to view my pages locally like this though?
    No, it will not work with that.

    I really don't know a way as I have never worked any pages locally. Sorry.
    Community Guidelines | Community FAQ

    "He that is kind is free, though he is a slave;
    he that is evil is a slave, though he be a king." - St. Augustine

  10. #10
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Az
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With dreamweaver..."preview in browser" wont work??

  11. #11
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    JohnAz I dont think so, I think the / before links makes it go to the root of windows. But I think maybe defining a site in DreamWeaver may solve the problem.

    Thanks for all your help guys, always appreciated

  12. #12
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,522
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    But I think maybe defining a site in DreamWeaver may solve the problem.
    If I remember correctly you define your site and then define a local root folder and your images should display when you preview in browser.

    However you can only view one page at at a time like this as any linked pages won't refer correctly when viewed locally through dw.

    Paul

  13. #13
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Thanks Paul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •