Removing old language codes		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			dhqq
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 3					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 5 months ago				#1066
		by dhqq
	
	
		
			
			
				My site used to use Joomfish and had a number of languages in urls such as /en/, /en-pem/, /fr/, etc. Now it doesn't and I'd like to remove the language part of the url when a user arrives via from an old link elsewhere.
Using /en/ as an example, how would I go about that?
Thanks!
David Harrison			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 5 months ago				#1070
		by admin
	
	
		
			
			
				Hi David,
if you need a rule that removes ONLY the initial language code and leave ALL the rest as is, is possible, but I suggest a rule for any language code. For english /en/ the rule is:
From URL: ^/en/
To URL: {scheme}://{host}{pathltrim /en}{queryfull}
Request only: true
Kind regards,
Luigi			
 
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			dhqq
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 3					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 5 months ago				#1071
		by dhqq
	
	
		
			
			
				Thanks Luigi, I will give that a try. There are only a few legacy languages to remove from URLs so two or three of them will be fine with me.
Best regards,
David			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
	 
	
		
				
		- 
			dhqq
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 3					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 5 months ago				#1076
		by admin
	
	
		
			
			
				Happy to hear this...
Prego, è stato un piacere!!! 
			 
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.151 seconds