View Full Version : /file instead of /file.html
chechu
05-25-2007, 10:07 AM
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
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/.
StarrRider
05-25-2007, 11:26 AM
You are a very lucky man. Two very lovely ladies.
Congratulations!
Yes, I thought I'd edited my post to include a congratulation, but apparently it didn't take, so congratulations :p
mwinter
05-25-2007, 06:49 PM
First: Congratulations to both you and your wife!
There are two alternative approaches to avoid "extensions" in URLs (http://www.dynamicdrive.com/forums/showpost.php?p=49006&postcount=7) (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.
Congrats!
I was under the impression that you could simply type www.yourdomain.com/page and it would turn into /page.html ?
boxxertrumps
05-26-2007, 05:08 AM
possibly... "http://domain.net/?mia"
<?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.
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.
chechu
05-28-2007, 07:42 AM
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% sure way ?
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.