Get a free trial // 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.

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

    here is one example of a real site that does this.

    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:

    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: … iting.html or here: … 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed