convert part of a filename to a directory		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			BodgeIT
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				Junior Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 31					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 3 months ago				#1349
		by BodgeIT
	
	
		
			
			
				Hi Luigi,
I wish I could figure this out but Regexp is like Russian to me!
I have many urls like:
/training/in-house-********** (*s = name of training course)
I need to redirect them to:
/training/in-house/*********
So far my redirects seem to create infinite loops.
Can you translate the Russian for me?			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 3 months ago				#1350
		by admin
	
	
		
			
			
				Ok,
it's not so difficult...
From URL: ^/training/in-house-
To URL: http://{siteurl}/training/in-house/{pathltrim /training/in-house-}
I'm assuming the URL has no params and ends after the *****, if this is not the case we should change a little the rule...
Kind regards,
Luigi			
 
					 
	 
	
		The following user(s) said Thank You: BodgeIT 	
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			BodgeIT
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				Junior Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 31					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 3 months ago				#1351
		by BodgeIT
	
	
		
			
			
				Hi Luigi,
Thanks for taking the time to reply so late at night.
It always appears a lot more complicated but when you see it done for you...seems so simple.
Thanks
Gary			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 3 months ago		 -  12 years 3 months ago		#1354
		by admin
	
	
		
			
			
				Thank you,
I'm here for this 
			 
					 
	 
	
		Last edit: 12 years 3 months ago  by admin.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.115 seconds