Grow your CSS skills. Land your dream job.

URL ending question?

  • # July 21, 2009 at 8:44 pm

    Hi this is my first post, mainly because my countless google searches have failed miserably.

    So all my site urls end in the file name that there on.
    i.e. mysite.com/index.html

    But i see sites that have there sites end in just the name of the site, as if its referring to just the folder.
    i.e. mysite.com/blog/

    here is one example of a real site that does this.
    http://www.danieloliver.co.uk/blog

    So my question is: How can this be done, and what is this technique called because it seems like it should be simple but i cant figure it out for the life of me.

    Thanks everyone

    # July 21, 2009 at 8:57 pm

    It’s because the ACTUAL url is:

    mysite.com/blog/index.html

    But the "index.html" is the default, so it isn’t shown in the url.

    # July 21, 2009 at 9:02 pm

    What TheDoc mentions may be correct (depending on the situation) but I believe you are wanting to research "url rewriting". You might want to start your research here: http://www.yourhtmlsource.com/sitemanag … iting.html or here: http://www.roscripts.com/Pretty_URLs_-_ … g-168.html.

    I’d suggest looking up the terms "url rewriting" and "apache mod_rewrite". You may be able to do some basic url rewriting though an apache .htaccess file too. A lot of CMS software has built in url rewriting.

    # July 22, 2009 at 12:50 am

    Ben is very right. I should’ve gone a little deeper.

    # July 24, 2009 at 3:02 pm

    Much Thanks! Super Helpful … I guess i just did know the right terms to search for.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".