sunny-j
asked on
redirect asp.net 2.0 pages
Hi there
I have a server set up and am pointing .co.uk domain names to it.
In order to redirect the request when it hits my server, i have added this code to the iisstart page.
If HTTPHost = "www.domain.co.uk" then
Response.Redirect ("http://www.domain.co.uk/folder")
End If
Now, i would prefer not to show the folder in the line so that pages are seen in the browser as www.domain.co.uk/default.aspx etc.,
Is there a way of doing this.
I am also conscious of the effect of the redirect might have on google rankings.
Any advise, much appreciated.
The server is hosting windows 2000 small business server if this helps.
thanks.
I have a server set up and am pointing .co.uk domain names to it.
In order to redirect the request when it hits my server, i have added this code to the iisstart page.
If HTTPHost = "www.domain.co.uk" then
Response.Redirect ("http://www.domain.co.uk/folder")
End If
Now, i would prefer not to show the folder in the line so that pages are seen in the browser as www.domain.co.uk/default.aspx etc.,
Is there a way of doing this.
I am also conscious of the effect of the redirect might have on google rankings.
Any advise, much appreciated.
The server is hosting windows 2000 small business server if this helps.
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
is this correct
If HTTPHost = "www.domain.co.uk" then
server.transfer ("/folder")
End If
It didn't redirect it to the folder i had in mind but simply showed the iisstart page.
any ideas of where i am going wrong. thanks.