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.

Website Design Forum


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



Freelance Jobs

Closed Thread
How to redirect from domain to domain/file ?
Old 01-31-2008, 08:43 PM How to redirect from domain to domain/file ?
Extreme Talker

Posts: 216
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?

Or how do I change the home page name to be the index page?

Right now it's domainname.com/folder/index

thanks.
chrisj is offline
View Public Profile
 
 
Register now for full access!
Old 02-01-2008, 06:25 PM Re: How to redirect from domain to domain/file ?
Average Talker

Posts: 17
Name: Ade
Location: United Kingdom
Trades: 1
If your using PHP you could use this in your index page to redirect
PHP Code:
<?
    Header
"HTTP/1.1 301 Moved Permanently" ); 
    
Header"Location: http://www.new-url.com" ); 
?>
Or using .htaccess
Code:
Redirect 301 /index.php http://www.example.com/dir/
adenw is offline
View Public Profile Visit adenw's homepage!
 
Old 02-02-2008, 05:10 PM Re: How to redirect from domain to domain/file ?
Novice Talker

Posts: 10
Name: Alistair McCoy
Trades: 0
the only way i know of doing this is with a redirect implemented through control panel
amccoy is offline
View Public Profile
 
Old 02-03-2008, 06:15 AM Re: How to redirect from domain to domain/file ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
One thread please.

http://www.webmaster-talk.com/html-f...-com-file.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to How to redirect from domain to domain/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.49458 seconds with 12 queries