Forum Moderators: phranque
Its a 404 redirect from non-www to www.
To to be called from the 404 custom error section with IIS:
--------------
<%@LANGUAGE="VBScript"%>
<%
Dim varFile:varFile = Request.querystring
Dim requestpage:requestpage = replace(varFile,"404;","")
Dim splitFile:splitFile = Split(requestpage,"?")
Dim splitnewFile:splitnewFile = Split(requestpage,":")
Dim newpage
newpage = splitnewfile(2)
If instr(newpage,"/") > 0 then
newpage = mid(newpage,(instr(newpage,"/") + 1))
Else
newpage = ""
End if
response.redirect "http://www.whatever.com/" & newpage
%>
--------------------
Im not a programmer and will only know if it works when I upload it.
However, will this also assign a 301 permanent redirect?
If not, what code should i use.
thanks
ts a 404 redirect from non-www to www.
To to be called from the 404 custom error section with IIS: