Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Automatically got to domainname.com/file
Old 01-31-2008, 01:01 PM Automatically got to domainname.com/file
Extreme Talker

Posts: 218
Trades: 0
I'd like visitors to my web site to automatically be taken to the home page when they enter my domian name. For example, when they type in thedomainame.com the will automatically see thedomainame.com/homepage.

Is this done by using htaccess?

Can you someone explain this to me? How it works and how to set it up?

thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-31-2008, 01:38 PM Re: Automatically got to domainname.com/file
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Why would you want that? Why not just put the home page in the root?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 01-31-2008, 05:37 PM Re: Automatically got to domainname.com/file
Average Talker

Posts: 27
Trades: 0
Your server should be set up to show index.html, index.htm, index.php and so on as soon as you enter yoursiteurl.com in your browser.

You can set your server up to accept other file names, but this may be problematic with some shared hosting accounts, and there's little point if it's as simple as renaming a file.

You could also try using JavaScript to redirect the user if you really need to send them to a sub directory.
This is also possible with PHP using headers like this:
PHP Code:
<?php
 header
("Location: http://www.google.com/");
?>
You'd put that in index.php on it's own and when the user goes to yoursiteurl.com/ it will send them to wherever the header function is being told to send them (Google in this case).
Nuvo is offline
Reply With Quote
View Public Profile
 
Old 02-01-2008, 02:33 AM Re: Automatically got to domainname.com/file
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Is this done by using htaccess?
It can be. However, given that all your other questions are about ASP, you can't! .htaccess is for Apache only NOT IIS.

It is actually better to NOT have the index pagename show up in the url for many reasons.
The main one being;
Should you change the name of the index page for any reason, all of your existing links to the root will still work.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-17-2008, 12:37 PM Re: Automatically got to domainname.com/file
Average Talker

Posts: 20
Trades: 0
HTML Redirect -
Quote:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> - http://www.web-source.net/html_redirect.htm
__________________
MyPaidHost.com - Cheap Webhosting, Reliable Host, Convenient Setup and Friendly Customer Service.

Please login or register to view this content. Registration is FREE
mypaidhost is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Automatically got to domainname.com/file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25497 seconds with 12 queries