g1smd

msg:767243 | 12:44 am on Nov 6, 2005 (gmt 0) |
You can redirect a whole site or one file at a time. You can do this by using mod_rewrite in the .htaccess file, or by using a PHP script tacked onto the front of the PHP page.
|
robinponty

msg:767244 | 4:32 am on Nov 6, 2005 (gmt 0) |
Hello Thanks for the reply. Please note that I have an Asp site and I want to implement this to not at the file level but at the URL level. Can you Please advice. We are using IBM's red dot CMS. thanks Rob
|
g1smd

msg:767245 | 8:12 am on Nov 6, 2005 (gmt 0) |
Oh that should be easy then. There is an ASP command, something like Response.Header that you can use to send the redirect. The code goes before the <html> tag of each page that you don't want people to access the content on any longer. Make sure that the response really is 301 and NOT 302 when you do it. Google for ASP 301 redirect for the 2 lines of code you need. Use WebBug to check the header.
|
g1smd

msg:767246 | 8:42 am on Nov 6, 2005 (gmt 0) |
<% Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.newdomain.com/page.html" Response.End %>
|
|