- Joined
- Apr 15, 2016
- Messages
- 612
- Points
- 28
I have a NGINX on my VPS server, I want to know what is the difference between  Rewrite 301 and  Return
for example.
	
	
	
		
	
	
	
		
Which method is more effective to use to make a 301 redirection? what would you recommend?
Thanks in advance.
								for example.
		Code:
	
	rewrite ^ http://www.example.com/urlvar/$request_uri? permanent;
Return 301:
		Code:
	
	location ~ redirect-this/?$ {
    return 301 http://www.example.com/urlvar/redirect-this$1;
}Thanks in advance.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		


 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		







