Results 1 to 2 of 2

Thread: redirect and transfer of header to another URL

  1. #1
    Join Date
    May 2012
    Posts
    2

    Default redirect and transfer of header to another URL

    Hi all!

    There is a controller that redirects user to a specific Url:

    Code:
    	@RequestMapping(value = "/goto", method = RequestMethod.GET)
    	public String redirectToSite(ModelMap model, HttpServletRequest request, HttpServletResponse response)
    	{
    		String url = "http://www.site.ru";
    		
    		response.addHeader("transfer_header", "whata_is_it");
    		
    		return "redirect:" + url;
    	}
    The problem is that after the redirect to the site "http://www.site.ru", I can't find my header "transfer_header"
    Where is it?
    How can I do the transfer of header correctly?

    Thanks in advance for your help.

  2. #2
    Join Date
    May 2012
    Posts
    2

    Default

    Quote Originally Posted by kgntechnologies View Post
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
    where these settings should be? I use tomcat and ngynx

Tags for this Thread

Posting Permissions

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