How to define BASE_URL in 5.7+
Permalink 1 user found helpful
Hi all,
I've seen a few threads like this, but none with an actual answer.
Now that site.php has gone from 5.7+, how/where do you define a BASE_URL?
Thanks in advance,
Chris
I've seen a few threads like this, but none with an actual answer.
Now that site.php has gone from 5.7+, how/where do you define a BASE_URL?
Thanks in advance,
Chris
Hi Smeersab, thanks for replying.
I'm running Concrete 5.7.3 on a Windows server, so .htaccess does nothign for me. I could write a similar process for a web.config, but hoped there was a more elegant solution like simply defining it in PHP like versions before 5.7.
Thanks again for taking the time to respond, though!
-Chris
I'm running Concrete 5.7.3 on a Windows server, so .htaccess does nothign for me. I could write a similar process for a web.config, but hoped there was a more elegant solution like simply defining it in PHP like versions before 5.7.
Thanks again for taking the time to respond, though!
-Chris
Hi Chris,
I have been looking around an hour but I couldn't find out how to solve this problem.
You might just have to edit the web.config, I'm afraid.
I feel sorry I couldn't help you out.
I have been looking around an hour but I couldn't find out how to solve this problem.
You might just have to edit the web.config, I'm afraid.
I feel sorry I couldn't help you out.
Keep an eye on this Github issue: https://github.com/concrete5/concrete5-5.7.0/issues/1976...
Yeah, just to follow up on this you'll be able to define your site's base URL using the config system and a dashboard page in 5.7.4. It's done using a couple separate options, rather than one base url parameter. See attached for what the URLs dashboard page looks like in 5.7.4 (note: this can also be set through config parameters.)
Sweet - thanks for that feature, and the screencap.
I have the same problem...please help some one.
Put this code in your .htaccess file, if the file already exists then please copy the code which is in there alreay in notepad so you can replace it again if it doesn't work out.
Good luck with it, Chris!