Jump to content

Live Edit redirects site from https to http and gives 404 not found


Johannes80

Recommended Posts

Hello dear community,

 

Version: 1.6.1.11

 

I setted up all modules and all went fine, then I deleted the demo content and now the live edit button is redirecting my site from https to http, causing a site not found 404 error.   If I add the "s" after http, its working again, but is somehow annoying. I checked back on another install on the same server, and there its working without problems.  So I guess it somehow happend with the deleting of the demo datas.

I tried already:  delete cache, smarty,.. , shut off all caching, rewriting htaccess,  off/on SSL again, off/on userfriendly URLs, and so on, but it doestn help.

 

Is there a way to get the live edit button working again to the right https link?

 

Thank you for help

Edited by Johannes80 (see edit history)
Link to comment
Share on other sites

It seems to be a bug.  LiveEdit Button is not checking against SSL, no matter if you have SSL enabled for all sites or not. 

In the case you are on a hoster where you have different directories for http and https,  as me  (I have public_html and private_html) and your sites are in private_html,  the error occurs.

 

Workaround:

1) Put your sites into the public_html and ask your hoster to make a symlink from private_html to public_html  (or check if your hosting controlpanel has this option,  example Directadmin has this option), ... or

2) leave your sites in the private_html and put following code into .htaccess from your public_html:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Edited by Johannes80 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...