× Here you can get community support related to ReDJ.

Https to http

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #3918 by AchLive
Https to http was created by AchLive
Hi, I'm having a problem with indexing a site on google. I noticed that Google indexes the same pages with both the protocol http with https.
How do I set up a redirect with RedJ throughout the site from https to http?
Thanks for support

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #3919 by admin
Replied by admin on topic Https to http
Hi,
create a rule (and order it as first) as follow:
From URL: ^https://
To URL: http://{siteurl}{path}{queryfull}
Request only: false (unchecked)

This can be also done with mod_rewrite, using a simple rule to put into .htaccess file:
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #3920 by AchLive
Replied by AchLive on topic Https to http
Hi Luigi, thanks for the reply.
I added the rule to the .htaccess file and now the pages indexed by google with https have the redirect to the HTTP protocol.
The problem is that it always refers to page miosito.it/index.php.
It seems that he can not retrieve the correct URL.
Example: if Google has indexed the page https://miosito.it/categoria/pagina.html the rules included in the .htaccess file should send me back to page http://miosito.it/categoria/pagina.html.
Do you think you can or you rightly refer to page miosito.it/index.php.
At this point, I also need to set the page as miosito.it/index.php canonical of miosito.it.
thanks

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #3925 by admin
Replied by admin on topic Https to http
Uhmmm,
try this:
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

Sincerely,
Luigi

Please Log in or Create an account to join the conversation.

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #3926 by AchLive
Replied by AchLive on topic Https to http
Thanks Luigi, unfortunately it does not work, always brings me back to index.php

Please Log in or Create an account to join the conversation.

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 10 months ago #3928 by AchLive
Replied by AchLive on topic Https to http
Do you think you could find a method to redirect to the correct page, perhaps using ReDJ? thanks Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds