prettyurls are not working if (for instance) the root dir is symlinked and defaults.php is left unchanged! so we should probably get the path from fp_config and as a plus maybe compare to the auto generated one.
This commit is contained in:
parent
e68b39ff39
commit
ae4ed473f7
@ -242,7 +242,8 @@ class Plugin_PrettyURLs {
|
||||
return;
|
||||
|
||||
|
||||
|
||||
# this is not working if you reach flatpress via symlink
|
||||
# unless you don't edit manually defaults.php
|
||||
if (strpos($_SERVER['REQUEST_URI'], BLOG_ROOT)!==false) {
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
$del = BLOG_ROOT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user