当我尝试获取我的网站链接时(例如domain.com),我只是做 我不想使用 更新 strong> p> \ n
如果我使用cloudflare,有什么技巧可以做吗? p>
div> url(); code>然后它返回
http://www.domain.com code>。 但是如果我想在我的制作中获得一个安全的URL(https)并在我的本地获得不安全的(http)怎么办? p>
secure_url( ) code>和
secure_asset() code>函数,因为我也在使用localhost。 p>
When I try to get the link of my site (for example domain.com), I just do url();
and it returns me http://www.domain.com
. but what if I want to get a secure url (https) in my production and to get unsecured (http) in my local?
I don't want to use secure_url()
and secure_asset()
functions because I'm working on localhost too.
Update
Is there any trick I can do if I'm using cloudflare?