Puntocom
Well-known member
Hello. In my forum I put the Resource Manager as the main page and later I realised that it was not a good idea so I changed it to /resources, so the forum at /.
Now I have a problem with duplicated content from the resources pagination.
http://example.com/?page=1
http://example.com/?page=2
Redirect http://example.com/?page=1 to http://example.com/resources/?page=1
Please, can you help me redirecting these urls in order to remove this duplicated content URLS? I'm using Nginx 1.2.1
Any idea on why this doesn't work?
	
	
	
		
This (inside location / { }) "works" but it falls in a loop:
	
	
	
		
UPDATE
With this (inside location /) at least I avoid duplicated content problem:
	
	
	
		
				
			Now I have a problem with duplicated content from the resources pagination.
http://example.com/?page=1
http://example.com/?page=2
Redirect http://example.com/?page=1 to http://example.com/resources/?page=1
Please, can you help me redirecting these urls in order to remove this duplicated content URLS? I'm using Nginx 1.2.1
Any idea on why this doesn't work?
		Code:
	
	rewrite ^/?page=(.*)$ /resources/?page=$1 permanent;
		Code:
	
	if ($arg_page) { return 301 http://example.com/resources/?page=$arg_page; }UPDATE
With this (inside location /) at least I avoid duplicated content problem:
		Code:
	
	if ($arg_page) {  return 301 https://example.com/anuncios/;  }
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
 
		 
 
		 
 
		 
 
		