You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vemman thank you for reporting this, we'll check it out and reply back shortly.
I also changed this issue title from "admin URL not proper" to "login URL doesn't work on local setup" for clarity.
robiso
changed the title
admin URL not proper
login URL doesn't work on local setup
Jan 14, 2017
@robiso
I liked the demo very much, so installed on local machine to play around.
On windows machines admin url is malformed
Instead of http://localhost/works/wondercms/loginURL I get http://localhostd/Works/wondercms/loginURL
I believe even if my work was inside apache's htdocs, I will still see the drive letter
Windows Setup
Apache 2.4, PHP7 > in C drive
My works are under D:\works\work_sub_folder
My Solution
I replaced INC_ROOT in
function url
with thisdirname($_SERVER['SCRIPT_NAME'])
public static function url($location = null) { return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].str_replace($_SERVER['DOCUMENT_ROOT'], '', str_replace('\\', '/', INC_ROOT))."/{$location}"; }
The text was updated successfully, but these errors were encountered: