25 if (!$rewriteTester->runRewriteTest(
$url)) {
28 if (!$rewriteTester->runLocalhostAccessTest()) {
30 $msg =
elgg_echo(
'installation:htaccess:localhost:connectionfailed');
31 if ($msg ===
'installation:htaccess:localhost:connectionfailed') {
32 $msg =
'Elgg cannot connect to itself to test rewrite rules properly. Check ';
33 $msg .=
'that curl is working and there are no IP restrictions preventing ';
34 $msg .=
'localhost connections.';
41 $msg =
elgg_echo(
'installation:htaccess:needs_upgrade');
42 if ($msg ===
'installation:htaccess:needs_upgrade') {
43 $msg =
'You must update your .htaccess file (use install/config/htaccess.dist as a guide).';
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Ensure that mod_rewrite is enabled and working.
Test if URL rewriting is working.
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
__invoke(Request $request)
Execute a rewrite test.
const ELGG_HTTP_INTERNAL_SERVER_ERROR
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url