View Single Post
  #11 (permalink)  
Old Mar 25th, 2008, 11:38
annanilova annanilova is offline
New Member
Join Date: Mar 2008
Location: Paris
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Re: 301 redirect on windows server (not asp)?

Quote:
Originally Posted by benbramz View Post
Code: Select all
<% 
Response.Status = "301 Moved Permanently" 
Response.addheader "Location", "http://www.yourdomain.com/newpageurl/" 
Response.End 
%>
I am on a Windows server, too, and would like to use this code to redirect one of my HTML pages. Could someone explain WHERE should I insert this code? What should be the file's name and extension and where should it be placed? Sorry for a "stupid" question, I am a complete newbee.
Reply With Quote