Results 1 to 4 of 4
Thread: redirect to another page
-
07-07-2011, 03:31 AM #1
Freshman
- Join Date
- Jul 2010
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
redirect to another page
I have created this code to redirect another page, but its not working.
please tell if there is any correction.
Code:<%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "address" %>
-
07-12-2011, 08:05 AM #2
Freshman
- Join Date
- Jul 2010
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
PLease reply.
If any one have solutions of my query, then just drop your reply.
Thank you.
-
07-12-2011, 09:49 AM #3
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,172
- Thanks
- 744
- Thanked 699 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
you are missing reference to HttpContext. This code below is in C#. You would get the idea what to do.
string destUrl="http://www.webcosmoforums.com/"; //change this url
HttpContext context = HttpContext.Current;
context.Response.Status = "301 Moved Permanently";
context.Response.AddHeader("Location", destUrl);Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
-
03-19-2012, 07:18 AM #4
Sophomore
- Join Date
- Mar 2012
- Posts
- 144
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Similar Threads
-
Partial redirect?
By bgjyd834 in forum Domain NamesReplies: 2Last Post: 06-29-2011, 07:33 AM -
How to redirect non www url to www ?
By Logicspice in forum Search Engine OptimizationReplies: 1Last Post: 03-24-2011, 01:46 AM -
301 redirect?
By sarita in forum Web Development - Programming & CodingReplies: 3Last Post: 12-28-2009, 07:19 AM -
301 Redirect ASP .Net
By manik in forum ASPReplies: 1Last Post: 01-16-2009, 11:28 PM -
301 Redirect - How to
By manik in forum Search Engine OptimizationReplies: 1Last Post: 06-19-2008, 12:27 AM


Reply With Quote

