Results 1 to 5 of 5

Thread: How to display files without the extension - Help

  1. #1
    Join Date
    Aug 2007
    Location
    MO USA
    Posts
    106
    Thanks
    37
    Thanked 0 Times in 0 Posts

    Default How to display files without the extension - Help

    I was looking at this website recently (http://www.cssninjas.com/) - they show their pages without the extension (.html) - i was wondering how they do it. Would be great if you can let me know how to do that.

    Thanks.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    make the directories with the name you'd want the page to be called then put an index.html into it

  3. #3
    Join Date
    Oct 2008
    Location
    Columbia Md
    Posts
    27
    Thanks
    1
    Thanked 8 Times in 8 Posts

    Default

    This is done by editing your http_config file on your Apache_server. Here's a link to the Apache Wiki http://httpd.apache.org/docs/2.2/con...gotiation.html. I hope it points you in the right direction.

    Ben

  4. #4
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    make the directories with the name you'd want the page to be called then put an index.html into it

    you mean make a folder say "tourist info" and put the index page. but will make so many folders if the site is big be appropriate. and the apache thing i did not get. can i get a bit more explanation for it.

    thanks
    tracy16
    keyword research

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    CSS Ninjas is probably using some sort of content management system. Using PHP, it's easy to get the effect you want. But the site has to built with that consideration from the start.

    For example, take the page http://www.cssninjas.com/features
    The actual URI of this could be http://www.cssninjas.com/index.php?page=features. But using .htaccess, you can rewrite it so it becomes http://www.cssninjas.com/features.

    Have a look at this article for more information on mod_rewrite (the process described above).

    Note: You don't need to be using URL variables to use mod_rewrite. I just use that as an example as it's a very common use case.

  6. The Following User Says Thank You to Medyman For This Useful Post:

    olveyphotodesign (11-19-2008)

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
  •