User talk:Michael R Cottam
Welcome to AboutUs.org, the editable guide to websites!
- Add a website to AboutUs.org:
- Search for a website (like "example.com") 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
comment by nitdhaval
I have a website of my family company : www.krishnadyes.net
I found this below error from aboutus.org:
his website can live at www.KrishnaDyes.net or KrishnaDyes.net. 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) = "krishnadyes.net") Then If (Len(sTmpQS) > 0) Then sTmpTargetURL = gsThisPage & "?" & sTmpQS Else sTmpTargetURL = gsThisPage End If
Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.krishnadyes.com" & sTmpTargetURL End If