xboxscene.org forums

Author Topic: 301 Redirect - Windows Server On Godaddy  (Read 92 times)

throwingks

  • Archived User
  • Hero Member
  • *
  • Posts: 2690
301 Redirect - Windows Server On Godaddy
« on: February 18, 2008, 08:54:00 PM »

Does anyone know how to setup a 301 redirect to make the www always be there?

Example:
throwingks.com redirects to www.throwingks.com

I always want the "www."

I know how to setup an .htaccess file for a Linux server but I do not know what to do on GoDaddy's Windows server.
Logged

throwingks

  • Archived User
  • Hero Member
  • *
  • Posts: 2690
301 Redirect - Windows Server On Godaddy
« Reply #1 on: February 19, 2008, 02:08:00 PM »

CODE
<%@ Language=VBScript %>
<%
response.status="301 moved permanently"
Response.AddHeader "Location", "http://www.{ - ??? - }.com/index1.html"
%>


I just had to create this simple file. I renamed index.html to index1.html so I wouldn't confuse anything. But, now it works.
Logged

throwingks

  • Archived User
  • Hero Member
  • *
  • Posts: 2690
301 Redirect - Windows Server On Godaddy
« Reply #2 on: February 20, 2008, 11:58:00 AM »

They have an option to forward the domain and mark it 301. But that is to a different domain altogether. I am not sure how to make it recursive, and always add "www."

If Google does not appreciate the method I used for a 301 redirect, I will have to look into what you suggested a bit more.
Logged