www.webdeveloper.com
Results 1 to 2 of 2

Thread: 301 redirect

  1. #1
    Join Date
    Feb 2006
    Location
    india
    Posts
    680

    301 redirect

    Hi Guys,

    I am facing a problem in redirecting a old url to a new one.

    //this is the old url
    http://www.abc.com/department.asp?dept=Minimal%20cloth

    the new url should be

    http://www.abc.com/Minimal-cloth

    Please suggest me the best possible way

    Thanks,

    Raj

  2. #2
    Join Date
    Nov 2008
    Posts
    19
    Use the below Code in department.asp
    Code:
    Response.Status = "301 Moved Permanently";
    Response.AddHeader("Location","http://www.abc.com/" & request.querystring("dept"));

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles