User talk:Michael R Cottam

This is your talk page, a place for people to leave you messages.

Welcome to, the editable guide to websites!

I'm excited that you've created your login so you can edit pages here on Here are some ideas to get you started:

Add a website to
  • Search for a website (like "") above
Edit and improve the domain page about that website:
  • Click an edit pencil
  • Add a summary of the site by clicking "click here to sum up this website!" at the top of the page

For more information click the Help link at the top left. Let me know if you have any questions and have fun editing! Best, Kristina Weis (contact me)
p.s. Like AboutUs? Follow us on Facebook or Twitter, or sign up for our monthly newsletter.

Great Article Link Juice: Save Every Drop

Nice article, Link Juice: Save Every Drop. I forwarded it to our web developer as a refresher and I think some of the resource links will be very valuable. Matt_Stephenson

comment by nitdhaval

I have a website of my family company :

I found this below error from

his website can live at or It's best for your site's visibility to live at just one URL, or web address. You'll want to create a 301 redirect to the URL you choose from the other URL.

I have read an article how to avoid such mistakes by 301 re-direct. It was very good explanation but I have some restrictions for which it is difficult to rectify mistakes.

1) My site is on Windows Server (so i couldn't load apache/.htaccess to ftp server) 2) I don't have control on server-side ( IIS, as I have only FTP user-id/pass & Helm controls.

So is there anyway in HTML coding or otherway I can solve this issue of non-www to www redirect 301.

comment by MichaelCottam

The solution is to make sure every ASP page includes a "globals" file (typically you'd put site-wide constants in it, etc.). In your globals.asp file, you can check the domain requested, and do a 301 redirect using Response.Redirect as follows. Note that we're checking for pages & query parameters and redirecting to that same page with the same query parameters on the www version of the domain:

Dim gsThisServer, sTmpTargetURL, sTmpQS, gsThisPage

gsThisServer = Request.ServerVariables("SERVER_NAME") sTmpQS = Trim(CStr(Request.ServerVariables("QUERY_STRING"))) gsThisPage = Request.ServerVariables("SCRIPT_NAME")

If (Lcase (gsThisServer) = "") Then If (Len(sTmpQS) > 0) Then sTmpTargetURL = gsThisPage & "?" & sTmpQS Else sTmpTargetURL = gsThisPage End If

Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "" & sTmpTargetURL End If