× Here you can get community support related to ReDJ.

https to http without index

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 3 months ago #4623 by kalixo
https to http without index was created 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.

More
8 years 3 months ago #4625 by admin
Replied by admin on topic https to http without index
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.089 seconds