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,


View Replies:
StefSmeers replied on at Permalink Reply
I am not sure if this will work since I am pretty new to Concrete5, but I think you can do this in your .htaccess file wich you should include in your root folder if it isn't there yet.

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.
# Use PHP53 as default
AddHandler application/x-httpd-php53 .php
<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/php53/lib
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
# -- concrete5 urls end --

Good luck with it, Chris!
goldfox replied on at Permalink Reply
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!

StefSmeers replied on at Permalink Reply
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.
goodnightfirefly replied on at Permalink Reply
andrew replied on at Permalink Reply 1 Attachment
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.)
StriderSEO replied on at Permalink Reply
Sweet - thanks for that feature, and the screencap.
theneptune replied on at Permalink Reply
I have the same problem...please help some one.