https to http without index		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			kalixo
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				Senior Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 45					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						9 years 10 months ago				#4623
		by kalixo
	
	
		
			
			
				Dear ReDJ's 
 
I got a lot of https sites indexed by google even if I never used https. I need to redirect all https to https, but I'm not sure how to do that. I googled some time ago solution how to get rid of "wwww" and "index.php" and I am doing it by code in my htacces file:
##################
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.website\.com$ [NC]
RewriteRule ^(.*)$ 
website.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^\/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ 
website.com/ [L,R=301]
RewriteCond %{REQUEST_URI} !^/index\.php
##################
Should I place other rule, or can I use any REDJ condition?
Thanks in advance,
Kalixo			
 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
- 
						Thank you received: 441					
- 
											
- 
											
 
	 
		 
		
			
	
						9 years 10 months ago				#4625
		by admin
	
	
		
			
			
				You do not need ReDJ in this case. But I don't understan the last row:
RewriteCond %{REQUEST_URI} !^/index\.php
It seems useless...			
					 
	 
	
		The following user(s) said Thank You: kalixo 	
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.151 seconds