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 and Server Administration Forum


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



Reply
301 redirect from domain.com to www.domain.com
Old 01-04-2010, 04:35 PM 301 redirect from domain.com to www.domain.com
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
I'm on a windows server and I need to redirect all traffic from domain.com to www.domain.com (301). Can you help? I've tried to do the "Home Directory" "A redirection to a url" within IIs but my site spools and times out. Any suggestions?
aigb_mcd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-04-2010, 04:52 PM Re: 301 redirect from domain.com to www.domain.com
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.highrankings.com/forum/in...dpost&p=117701

to do this with IIS you need two hosting setups.
__________________
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 online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-04-2010, 04:57 PM Re: 301 redirect from domain.com to www.domain.com
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
I just add a reply with this subject at http://www.webmaster-talk.com/the-go...tml#post968534.

And the last post is:
To be installed on the htacess file.
*To avoid the https:
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://domain.***/$1 [R=301,L] (to do this you need to have a ssl on the apache server installed.)
*To avoid the www. :
RewriteCond %{HTTP_HOST} !^ttaxi.pt$
RewriteRule ^(.*)$ http://domain.***/$1 [R=301]
*To avoid the domain.***/index.html and redirect to the http://domain.***
RewriteCond %{the_request} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ http://domain\.***/$1 [l,r=301]

I hoppe this help your problem.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by xela1966; 01-04-2010 at 04:59 PM..
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 01-04-2010, 05:00 PM Re: 301 redirect from domain.com to www.domain.com
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
so i will need to create to sites in iis. one www and the other without www and do the properties on the without www and redirect to www.domain.com under "A redirection to a url"?
aigb_mcd is offline
Reply With Quote
View Public Profile
 
Old 01-04-2010, 05:02 PM Re: 301 redirect from domain.com to www.domain.com
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
im on a windows server not apache. i tried the code above and it didnt work for me.
aigb_mcd is offline
Reply With Quote
View Public Profile
 
Old 01-04-2010, 05:02 PM Re: 301 redirect from domain.com to www.domain.com
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Quote:
Originally Posted by aigb_mcd View Post
I'm on a windows server and I need to redirect all traffic from domain.com to www.domain com (301). Can you help? I've tried to do the "Home Directory" "A redirection to a url" within IIs but my site spools and times out. Any suggestions?
I just have notice that the domain . com is getting a lot of links because peopal use it as a link.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 01-04-2010, 05:04 PM Re: 301 redirect from domain.com to www.domain.com
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Quote:
Originally Posted by aigb_mcd View Post
im on a windows server not apache. i tried the code above and it didnt work for me.
Ops, sorry didn't read windows server.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 01-04-2010, 05:05 PM Re: 301 redirect from domain.com to www.domain.com
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
sure no prob.
aigb_mcd is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 301 redirect from domain.com to www.domain.com
 

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.34314 seconds with 12 queries