Results 1 to 10 of 10

Thread: /file instead of /file.html

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default /file instead of /file.html

    Hey you all,
    Have been gone for a long time, for a fantastic reason. My baby-girl was born last week, after a hell of pregnancy and cesarean. My wife really suffered, but the result is AMAZING !
    I created a website for my daughter Mia: http://www.cecicasariego.com/bebe/bebe.html. Now my question is: how can I make this easier by having the url like her name: www.cecicasariego.com/mia So no .html or anything else, just her name.
    What language should I use ?

    A super-proud daddy,
    Chechu

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The easiest way is to rename the folder to "mia" and have the main page be "index.html" (server configurations may differ, but index.html is the most common). Then, you can access it as http://www.cecicasariego.com/mia/.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2007
    Location
    Sherman Texas
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You are a very lucky man. Two very lovely ladies.
    Congratulations!

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, I thought I'd edited my post to include a congratulation, but apparently it didn't take, so congratulations
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    First: Congratulations to both you and your wife!

    There are two alternative approaches to avoid "extensions" in URLs (end of the post), that offer more flexibility than using directories at the cost of more hassle in setting them up. A third would include URL rewriting, but that can be even more troublesome.
    Mike

  6. #6
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Congrats!

    I was under the impression that you could simply type www.yourdomain.com/page and it would turn into /page.html ?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  7. #7
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    possibly... "http://domain.net/?mia"
    PHP Code:
    <?php if(isset($_GET['mia'])) { ?>
    Your daughters page...
    <?php ?>
    She's so cute... but just wait for teenage-ness to kick in.
    Dont worry though, you'll get used to it by the end of 2020.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I was under the impression that you could simply type www.yourdomain.com/page and it would turn into /page.html ?
    Read the post to which mwinter linked.
    possibly... "http://domain.net/?mia"
    Possible, but ugly.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Yep, I'm having my share of smell and noise already !
    But it feels great.

    The easiest way is to rename the folder to "mia" and have the main page be "index.html" (server configurations may differ, but index.html is the most common). Then, you can access it as http://www.cecicasariego.com/mia/.
    Doe it mean there is no 100&#37; sure way ?

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, if that's not the page name you just have to look through your server config and see what is. I suspect it would be, though.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •