Test if URL rewriting is working.
More...
Test if URL rewriting is working.
Definition at line 13 of file RewriteTester.php.
Elgg\Router\RewriteTester::__construct |
( |
| ) |
|
Elgg\Router\RewriteTester::createHtaccess |
( |
string |
$url | ) |
|
Create Elgg's .htaccess file or confirm that it exists.
- Parameters
-
string | $url | URL of rewrite test |
- Returns
- bool
Definition at line 158 of file RewriteTester.php.
Elgg\Router\RewriteTester::guessSubdirectory |
( |
string |
$url | ) |
|
|
protected |
Guess if url contains subdirectory or not.
- Parameters
-
string | $url | Rewrite test URL |
- Returns
- string|bool Subdirectory string with beginning and trailing slash or false if were unable to determine subdirectory or pointing at root of domain already
Definition at line 83 of file RewriteTester.php.
Elgg\Router\RewriteTester::guessWebServer |
( |
| ) |
|
|
protected |
Guess the web server from $_SERVER['SERVER_SOFTWARE'].
- Returns
- string
Definition at line 59 of file RewriteTester.php.
Elgg\Router\RewriteTester::returnStatus |
( |
string |
$url | ) |
|
|
protected |
Elgg\Router\RewriteTester::run |
( |
string |
$url | ) |
|
Run the rewrite test and return a status array.
- Parameters
-
string | $url | URL of rewrite test |
- Returns
- array
Definition at line 37 of file RewriteTester.php.
Elgg\Router\RewriteTester::runLocalhostAccessTest |
( |
| ) |
|
Check whether the site homepage can be fetched via curl.
- Returns
- boolean
Definition at line 114 of file RewriteTester.php.
Elgg\Router\RewriteTester::runRewriteTest |
( |
string |
$url | ) |
|
Hit the rewrite test URL to determine if the rewrite rules are working.
- Parameters
-
string | $url | Rewrite test URL |
- Returns
- bool
Definition at line 104 of file RewriteTester.php.
string Elgg\Router\RewriteTester::$htaccessIssue |
|
protected |
bool Elgg\Router\RewriteTester::$rewriteTestPassed |
|
protected |
bool Elgg\Router\RewriteTester::$serverSupportsRemoteRead |
|
protected |
string Elgg\Router\RewriteTester::$webserver |
|
protected |
The documentation for this class was generated from the following file: