Announcement Announcement Module
Collapse
No announcement yet.
redirect and transfer of header to another URL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Originally posted by kgntechnologies
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
    where these settings should be? I use tomcat and ngynx

    Comment

    Working...
    X