|
|
|
|
|
I tried that but it didn't work, thanks anyway.
i managed to do what i wanted in the end tho..
<%
if left(request.servervariables("server_name"),3)<> "www" then
response.redirect "http://www.road-crossing-frog.co.uk"
end if
%>
|
|
|
For the Response.redirect to work at the start of your page you will ahve to include the following
<%@ Response.Buffer=True %>
It should work now
|
|
|
where would i inculde <%@ Response.Buffer=True %> ??
<%
Response.Buffer=True
if left(request.servervariables("server_name"),3)<> "www" then
response.redirect "http://www.road-crossing-frog.co.uk"
end if
%>
?? would that do it?
Or
<%@ Response.Buffer=True %>
<%
if left(request.servervariables("server_name"),3)<> "www" then
response.redirect "http://www.road-crossing-frog.co.uk"
end if
%>
thanks =)
|
|
|
The second one will work, but I've never tried the first so I'm not sure whether it will, try it out though.
|
|
|