IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 19th, 2005, 11:12 AM
thedagda thedagda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 thedagda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 52 m 24 sec
Reputation Power: 4
Redirecting without an IP Address

I need to setup a 301 re-direct from:
http://foo.com to http://www.foo.com

In everything that I've found so far tells me that I need to create another website through IIS and redirect it from there. The problem is, I don't have an IP address to spare at the moment, so this option doesn't work.

Are there any other options to setup a 301 redirect through IIS without creating another website?

Any suggestions or help would be greatly appreciated.

Thanks,

Conor

Reply With Quote
  #2  
Old January 19th, 2005, 03:32 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
Why do you need another IP address? You should be able to create a new website with the same IP address but different host header value.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old January 19th, 2005, 04:41 PM
thedagda thedagda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 thedagda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 52 m 24 sec
Reputation Power: 4
Quote:
Originally Posted by edwinbrains
Why do you need another IP address? You should be able to create a new website with the same IP address but different host header value.


After setting up the site using the host header value, will I be able to create the 301 redirect? The way that I understand it, you will not have that option.

I want the 301 redirect for SEO reasons. We don't want to 1) lose the pagerank/authority that http://foo.com has gotten and 2) possibly be penalized for duplicate content by accessing the same content from two different addresses.

Reply With Quote
  #4  
Old January 19th, 2005, 07:31 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
An asp response.redirect does a 301 redirect afaik.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #5  
Old January 20th, 2005, 09:31 AM
thedagda thedagda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 thedagda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 52 m 24 sec
Reputation Power: 4
I just ran some simple tests to see if I could use PHP to do this redirect, and I don't think this will work either. I tried to redirect the page after determining if they accessed it by www.foo.com or http://foo.com. For some reason, the URL/Server variables always return the www. So it's a no go. I also tried to use Javascript (window.location) and that returned the same thing.

It looks like I'll have to burn an IP address to do this redirect or just forget about it. Any other suggestions are still appreciated.

Conor

Reply With Quote
  #6  
Old January 20th, 2005, 01:40 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
Quote:
Originally Posted by thedagda
I just ran some simple tests to see if I could use PHP to do this redirect, and I don't think this will work either.


This code should move with a 301 redirect:

http://forum.weborum.com/index.php?showtopic=51

Reply With Quote
  #7  
Old January 20th, 2005, 01:44 PM
thedagda thedagda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 thedagda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 52 m 24 sec
Reputation Power: 4
Quote:
Originally Posted by edwinbrains
This code should move with a 301 redirect:

http://forum.weborum.com/index.php?showtopic=51


Again, this requires a seperate website to be created through IIS, using another IP address, for the sole purpose of re-directing traffic. IIS can provide the 301 redirect without using PHP or other methods - but I was trying to avoid setting up this additional website if possible.

It doesn't look like I'll be able to do that, so I'm just going to burn that additional IP address and setup the alternative site.

Thank you to all who gave the time to make suggestions.

Conor

Reply With Quote
  #8  
Old February 22nd, 2005, 07:35 AM
ErEf ErEf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 ErEf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 8 sec
Reputation Power: 0
Code:
<%

Select Case Request.ServerVariables("SERVER_NAME")

 Case "foo.com"  		Response.Redirect "http://www.foo.com"
 
End Select
%>


I use this code in my index.asp page

Reply With Quote
  #9  
Old February 22nd, 2005, 09:58 AM
thedagda thedagda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 thedagda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 52 m 24 sec
Reputation Power: 4
Quote:
Originally Posted by ErEf
Code:
<%

Select Case Request.ServerVariables("SERVER_NAME")

 Case "foo.com"  		Response.Redirect "http://www.foo.com"
 
End Select
%>


I use this code in my index.asp page


I finally got around to setting this up yesterday. I used Isapi_rewrite (http://www.isapirewrite.com/) and it works like a charm. For $70, you can setup unlimited sites and other redirects and no need for seperate IP addresses for each site.

Conor

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Redirecting without an IP Address


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway