Answer the question
In order to leave comments, you need to log in
What is the best way to organize the work of not all sections of the site on Yii using the HTTPS protocol?
There is a large site (portal) on Yii 1.x.
It is necessary to ensure that only some sections of the site work through the HTTPS protocol : the admin panel, personal user accounts, the registration form on the site
And everything would be fine, but the architecture is modular, for example, there is an admin module - responsible for the operation of the admin interface, at the same time there are page modules, galleries, articles, etc. - at the same time, in one module, it turns out that there is both an implementation of the Front-End interface and a Back-End interface (interfaces for the admin panel). Tweaking each module and rewriting links in Back-End interfaces is a lot of work !
Can you recommend something forreduce the amount of routine work on changing links from http to https in each of the Back-End interfaces ? So far, only one idea
comes to mind , each of the Back-End interfaces has a login page (entrance to the Personal Account, entrance to the amdink, entrance to the registration page) - rewrite these links to https, and then take into account http_referer in the plan with HTTPS in the functionality or HTTP - was the input? And if with HTTPS then fix all links on the fly by changing HTTP to HTTPS. True, in this case, after authorization in the admin panel or Personal Account, it remains possible to alternatively access any file via HTTP - which is not too big a problem, but still.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question