301 redirect on dynamic pages

tkowebworks

New Member
Hello,

Is there any reason I would not be able to do a 301 permanent redirect for dynamic pages in an asp.net environment?

I've never done this before, but our programmers said they were not able to do this. They said you can only do a 301 redirect on static pages. However i have found several sites discussing how to do this.

I'm now at a loss. Wish I knew how to program it myself but i'm afraid to touch the files, and am not even sure what files to do this in.

Thanks as always for any input :)
 

Brillig

New Member
It's very straightforward to do a 301 from a dynamic page.

Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"

Are you sure there wasn't some other factor besides dynamic? Maybe the new url has a dynamic url so they can't specify "new.url.com"?
 
Top