Results 1 to 4 of 4

Thread: How to make your site accessable without .html or .htm

  1. #1
    Join Date
    Jun 2008
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question How to make your site accessable without .html or .htm

    Hi there,

    I want to know how to make website accessable without having to complete the link with .html or . htm?

    Is there any script for that? Hope somebody could help
    thanks a lot

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If your page is index.htm (.html, etc), then you can just use the address of the folder, like:
    http://yoursite.com/folder/ [/index.html]
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    There are two ways.. the first is to set up content negotiation This will allow the server to serve up different types of a single file, if your server has one it will display it.

    The other... well I am trying to remember where I just saw it... it was as described above and I saw it just a couple days ago... I will post back when I find it.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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

    Default

    How is your site set up? Unless you're coding something from scratch and still in the planning stages (or are willing to reorganize your entire website), there are some techniques that won't apply.

    If you're using PHP & URL variables (e.g. shop.php?category=books&title=the-history-of-books), you could use some .htaccess magic to get the url to be: shop/books/the-history-of-books

    That's the same intuitive, SEO-friendly, URI you'll get using most CMS applications (WordPress' "pretty URLs" as a prime example).

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
  •