Cant have a basic 301 redirect on this site?		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			Chacapamac
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				Junior Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 37					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 6 months ago				#1043
		by Chacapamac
	
	
		
			
			
				The site did have a hack redirection and seem to be fix now.
• Can you use redj in combination with an htaccess?
• If I remove the htaccess what is the normal canonical 301 rule for redj ?
• Are the redirect (if made in redj) is comparable in efficiency to an htaccess ?			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 6 months ago		 -  12 years 6 months ago		#1046
		by admin
	
	
		
			
			
				
• Can you use redj in combination with an htaccess?
Yes, they are independent...
• If I remove the htaccess what is the normal canonical 301 rule for redj ?
What do you mean with "normal canonical 301 rule"?
• Are the redirect (if made in redj) is comparable in efficiency to an htaccess ?
It depends. A rule in .htaccess file is parsed by the web server for ANY request, not only for php pages but also for  images, css, and so on. All ReDJ rules require a single SQL query to check if any match with current URL, but th equery is executed only within a php page call...
Kind regards,
Luigi			
 
					 
	 
	
		Last edit: 12 years 6 months ago  by admin.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			Chacapamac
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				Junior Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 37					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 6 months ago				#1047
		by Chacapamac
	
	
		
			
			
				Canonical
The equivalent of that:
########## Begin - 301 Redirect
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(index|home)\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.psysol.ca/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.psysol.ca/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.psysol\.ca)?$
RewriteRule (.*) http://www.psysol.ca/$1 [R=301,L]
#
########## End - 301 Redirect 			 
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						12 years 6 months ago				#1050
		by admin
	
	
		
			
			
				The second one has a post condition you cannot get with ReDJ, the third one is redirection from non-www to www, can stay in the .htaccess file. About the first one, I do not understand  the meaining of the rule, sorry. You should explain me to create the same ReDJ rule.
Kind regards,
Luigi			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.128 seconds