|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/efusion1/ |
Upload File : |
<%
If Left(Request.ServerVariables("HTTP_HOST"), 4) <> "www." Then
Dim newUri
'Build the redirect URI by prepending http://www. to the actual HTTP_HOST
'and adding in the URL (i.e. the page the user requested)
newUri = "http://www." & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL")
'If there were any Querystring arguments pass them through as well
If Request.ServerVariables("QUERY_STRING") <> "" Then
newUri = newUri & "?" & Request.ServerVariables("QUERY_STRING")
End If
'Finally make the redirect
Response.Redirect(newUri)
Response.Status = "301 Redirect"
End If
%>