Https and Http

20 views
Skip to first unread message

Nancy Moussa

unread,
May 28, 2016, 7:36:07 AM5/28/16
to Omeka Dev
Hi,

Is there a built in function in Omeka to find out if the Url is http or https?

Thanks
Nancy

Anurag Spatzenegger

unread,
May 29, 2016, 9:08:57 AM5/29/16
to omek...@googlegroups.com
AFAIK no.

There is a check for SSL connections in bootstrap.php, which adjusts the URL accordingly.

You can always use PHPs $_Server to check for SSL connections, with some caution though because depending on your server setup the results may be inconsistent. See also : https://github.com/omeka/Omeka/issues/685#issuecomment-205895067

Or I suppose you could modify bootstrap.php, adding a constant, although, that may not be as clean as you'd want it to be.

Anurag
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at https://groups.google.com/group/omeka-dev.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages