I’ve been trying to do a 301 redirect from the non www version to the www version of my website. I’ve tried the following two codes from a godaddy help article:
header("HTTP/1.1 301 Moved Permanently");
<script language="c#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
Response.Status = "301 Moved Permanently";
Tried uploading first one, didn't work. Deleted it. Tried the next one and it didn't work. Deleted it too.
I’ve contacted Godaddy support but they will not offer any further help with the issue. My website is “padraigdarcy dot net” and of course I want to redirect to www dot “padraigdarcy dot net” – both currently return a HTTP/1.1 200 OK status.
Server IP Address: 18.104.22.168
OS/Hosting Type: Windows / Shared Hosting
.Net Runtime Version: ASP.Net 1.1
PHP Version: PHP 5.2
IIS Version: IIS 7.0
Thank you to anyone that can help with this issue.