We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

contact importer turn ssl pn for canvas page only | Forum

Topic location: Forum home » Support » General Questions
tammy harris
tammy harris Jun 17 '15
putting this code in htacess use to work fine in 1.6
but does not work now

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /contactimporter/fbcanvas
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


how do i turn ssl on just for the canvas page 
ross Team
ross Jun 17 '15
Topic was moved from Bug reports and troubleshooting.
Taissa Team
Taissa Jun 19 '15
Tammy, this issue is connected to the server settings. Check if there were any changes in server settings and in particular mod_rewrite settings.
The Forum post is edited by Taissa Jun 19 '15
tammy harris
tammy harris Jun 21 '15
Taissa
 i dont think its a server problem 

as mobile site pages work fine when you put the s in the url
to make https
http://www.theopenretreat.com/mobile-version
then put the s in 
https://www.theopenretreat.com/

and other scripts on my server have no issue with putting https in address bar 

something in the last few updates is auto redirect  https to http on main site

going the other way around does not work now as well
setting the site to be https in config 
and htacess rules to make pages none ssl 

ie /videos   so none ssl video embed codes work 

The Forum post is edited by tammy harris Jun 21 '15
tammy harris
tammy harris Jun 21 '15
on the demo site https on the canvas page is not working as well and i know it was as i looked at it long time ago
and it was working as your fb contact inporter is  working 

https://demo.oxwall.org/contactimporter/fbcanvas/
Taissa Team
Taissa Jun 24 '15
Tammy, I've reported about it to our developers.
Presently you may try the following solution:
- delete from .htaccess file these lines

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /contactimporter/fbcanvas
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

- go to the ow_plugins/contact_importer/init.php file and add in the end of file this line OW::getApplication()->addHttpsHandlerAttrs('CONTACTIMPORTER_CTRL_Facebook', 'canvas');
tammy harris
tammy harris Jun 24 '15
Thanks Taissa that worked great 
tammy harris
tammy harris Jun 27 '15
a better fix is to
Edit ow_core/application.php

Remove or comment out the line 527: $this->httpVsHttpsRedirect();

then everthing works as is use to 

Taissa Team
Taissa Jun 30 '15
Tammy, this method httpVsHttpsRedirect was specifically added to core files and it allows https redirection for the certain pages and you may break down other parts of software by commenting this line. That is why we strongly recommend not to modify the core files. Also don't forget that when you update your site - all the changes you've made will be lost.
The Forum post is edited by Taissa Jun 30 '15
tammy harris
tammy harris Jun 30 '15
i understand about lose it on update 
but as its a big issue
with https stopping newsfeed view more button working and
the problem with contact inporter
it should be fixed the next update

i have had the line commented out not for few days and all seams to be working fine 
Taissa Team
Taissa Jul 1 '15
Tammy, as we already said we are going to refactor the Contact importer API in the nearest future, and in this case probably you will not need this fix.
tammy harris
tammy harris Jul 1 '15
cool thanks
The Forum post is edited by tammy harris Jul 1 '15