How to set config for SITE_URL or BASE_URL
Permalink
Just getting into 5.7 and noticed the config/site.php file setup is totally different.
Basically, I'd just like to define my site URL. This was super easy in pre-c5.7 installs as 1 line in the config/site.php file.
Now, I no longer see this default setting in application/config/database.php or app.php.
Not sure which one it should go in, I'm guessing app.
All I want to do is define the site URL as HTTPS, like this using the old method:
Not sure how to do that in c5.7.
Can someone enlighten me? I want to do that and check what URLs c5 puts in the sitemap.xml file (does it do it with or without HTTPS)?
Google will give you a bump in SERPs for running the whole site via HTTPS now.
However, they've announced that 80% of the developers who've made the jump actually are doing worse in google SERPs b/c their sitemap.xml file still points to the http version.
I want to ensure c5 doesn't do that before I go all the way with it.
Thanks in advance!
Basically, I'd just like to define my site URL. This was super easy in pre-c5.7 installs as 1 line in the config/site.php file.
Now, I no longer see this default setting in application/config/database.php or app.php.
Not sure which one it should go in, I'm guessing app.
All I want to do is define the site URL as HTTPS, like this using the old method:
define('BASE_URL', 'https://www.site.com');
Not sure how to do that in c5.7.
Can someone enlighten me? I want to do that and check what URLs c5 puts in the sitemap.xml file (does it do it with or without HTTPS)?
Google will give you a bump in SERPs for running the whole site via HTTPS now.
However, they've announced that 80% of the developers who've made the jump actually are doing worse in google SERPs b/c their sitemap.xml file still points to the http version.
I want to ensure c5 doesn't do that before I go all the way with it.
Thanks in advance!
this is coming back in 5.7.4. You'll be able to define your canonical host name, port, SSL settings, etc... as well as whether you want to force displaying of your site at the one URL.
Did this get added in 5.7.4 as planned?
@StriderSEO
See attached screenshot for current implementation.
See attached screenshot for current implementation.
Thanks!