HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

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 SEO Chat Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old February 27th, 2008, 04:09 PM
mfarley mfarley is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 6 mfarley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m
Reputation Power: 0
301 redirecting on IIS Server

I own a dedicated linux server so am very familiar with .htaccess. I do all my www. redirects with a simple code in that file.

However I recently got hired to do SEO for a small business and the site is hosted on a Windows Server running IIS. What is the best way to do a 301 redirect for non-www to www on an IIS server?

The best option I came up with is to create a separate account and have the non-www simply forward to the other.

Is there a better option for forwarding non-www on a Windows Server?

Thanks,
Mike

Reply With Quote
  #2  
Old March 5th, 2008, 10:25 AM
seomonkeymanocp's Avatar
seomonkeymanocp seomonkeymanocp is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: London, England
Posts: 630 seomonkeymanocp User rank is Corporal (100 - 500 Reputation Level)seomonkeymanocp User rank is Corporal (100 - 500 Reputation Level)seomonkeymanocp User rank is Corporal (100 - 500 Reputation Level)seomonkeymanocp User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 6 Days 20 h 23 m 5 sec
Reputation Power: 6
Send a message via MSN to seomonkeymanocp
Quote:
Originally Posted by mfarley
I own a dedicated linux server so am very familiar with .htaccess. I do all my www. redirects with a simple code in that file.

However I recently got hired to do SEO for a small business and the site is hosted on a Windows Server running IIS. What is the best way to do a 301 redirect for non-www to www on an IIS server?

The best option I came up with is to create a separate account and have the non-www simply forward to the other.

Is there a better option for forwarding non-www on a Windows Server?

Thanks,
Mike


asp will be fine:

Code:
<%
Response.Status="301 Moved Permanently" 
Response.AddHeader "Location", "/new-page.asp"
%>

Reply With Quote
  #3  
Old March 5th, 2008, 11:42 AM
pro_seo's Avatar
pro_seo pro_seo is online now
Moderator
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 2,605 pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 21 h 54 m 44 sec
Reputation Power: 30
Send a message via AIM to pro_seo Send a message via MSN to pro_seo Send a message via Yahoo to pro_seo Send a message via Google Talk to pro_seo Send a message via Skype to pro_seo
I'd rather create a new website with domain.com as the host name and 301 it to www.domain.com

I am looking for a way to redirect default.aspx to / but seems there isn't a way to do it
__________________

Social Mobile Messaging
SEO FAQs - You might find your answer here.
SEOchat Forum Rules - Read Before You Post


**Do what you feel in your heart to be right- for you'll be criticized anyway. You'll be damned if you do, and damned if you don't.**

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > 301 redirecting on IIS Server


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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