Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

www.website.com/something

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
sometimes sites lets you visit a particular page, without writing a file extension. for example ' can this be done making a folder called news, then placing a file called index.html in it?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
yep

Hope This Helps!

Ecobb
- I hate computers!
 
That is correct. Place a file called index.html in the sub-directory and it will work the same as when you place the index.html in your root directory. No extension needed to point to that page.

When in doubt, deny all terms and defnitions.
 
cheers fellas.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
seanbo,

What you're actually looking at in this example is a directory named &quot;news&quot;. What you name the HTML file so that this happens depends on how the server is configured. Typically, the first default file name is what you would want to name your files to make this happen.

For instance: If the server was set up to use index.html as the default file then you'll want to name your file this. If it is home.htm then you'll want to name it that.

If the default file is supposed to be default.html and you name your file index.html, the page may still display, but the file name will also show in the browser URL.

Got it? My explanation may not be entirely clear. Basically, check with your hosting company to find out what the default file name is for your server and name your files appropriately.

Good luck,
-Ron

-We are all given the same deck of cards, it's how we play the hand we are dealt which makes us who we are.
 
no worries ron, i knew that anyhoo. i just used index.html because that's what it usually is (and is in my case). thanks all the same.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top