Help with Redirect with a changing ID		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			gamaru
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				New Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 1					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						8 years 3 months ago				#6220
		by gamaru
	
	
		
			
			
				Hello,
I currently have pages where the source url looks like the following: 
www.mydomain.com/search?authors=46842&Sam
The number "46842" after authors can change so I basically need a way for it to redirect whenever the "&Sam" part shows up in the URL. This redirects to a static page that looks like: 
www.mydomain.com/resources/1397-Sam
I currently have: ^/search\?authors\=[0-9]+\&Sam$
This isn't working so any help would be great.
Thanks!			
 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
- 
						Thank you received: 441					
- 
											
- 
											
 
	 
		 
		
			
	
						8 years 3 months ago		 -  8 years 3 months ago		#6225
		by admin
	
	
		
			
			
				Try this (literally):
From URL: ^/search\?authors=[0-9]+&Sam$
ToURL: {scheme}://{siteurl}/resources/1397-Sam
Request only: true (checked)
Case sensitive: true (checked)
Take a look at the hits counter forthe rule (it should grow for working rules).
Kind regards,
Luigi			
 
	 
	
		Last edit: 8 years 3 months ago  by admin.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.122 seconds