Forum Moderators: open
We have two indentical webpages on our site and nneed to perform a redirect in order to avoid duplication issues and transfer the PR of the redirected page;
Index1.html - Old page, PR4
Index.html - New homepage, duplicate of index1.html, PR2
We need to perform a 301 redirect from Index1.html to index.html however our hosting company are not willing to setup a 301 redirect in IIS.
I think however i have found an alternative solution;
If we insert the following code into the redirected page (index1.html) will this have the desired effect?
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.example.com/index.html"
>
Many thanks in advance!
Lee
[edited by: pageoneresults at 2:02 pm (utc) on May 23, 2006]
[edit reason] Examplified URI Reference [/edit]
I'm having major problems with this 301 none - of the above methods seem to work on <edited>. Don't think I'm inserting the script in the wrong place.
I think the main reason I'm having problems is the control we have over the server, or lack of it. I think we may need a server side script to take care of things.
Obviously the page we have is HTML which means that the server wont run server side code only client side.
Any thoughts?
[edited by: tedster at 5:17 pm (utc) on May 24, 2006]