Search the Community
Showing results for tags 'centminmod'.
Found 1 result
Nginx Rewrite Oddity - Front End Links Ok, Backend Links Not?Hi I just started a 30 day trial for Blesta 3.4.3 to see if it's suited for my use on my Centmin Mod LEMP stack based Nginx/PHP-FPM/MariaDB setup. Installation went fine but with friendly nginx rewritten urls came across an oddity that from forum search, I don't think I've come across. friendly urls is enabled by setting lib/init.php // define("HTACCESS", file_exists(ROOTWEBDIR . ".htaccess")); define("HTACCESS", true); And then i've tried everyone of this forums nginx rewrite formats populated throughout this forum via search and all result in the same. Front end client side links work as friendly urls when clicked direct to right place i.e. http://newdomain.com/client/login/ http://newdomain.com/admin/login/ http://newdomain.com/admin/ However, backend admin urls within ONLY the nav links are NOT friendly urls and when clicked redirect to front page at http://newdomain.com i.e. http://newdomain.com/index.php/admin/clients/ http://newdomain.com/index.php/admin/billing/ http://newdomain.com/index.php/admin/packages/ http://newdomain.com/index.php/admin/tools/ these all redirect to front page at http://newdomain.com when clicked when define("HTACCESS", true); is set. If I unset define("HTACCESS", true);, then those links in nav area work Backend admin urls NOT within nav links work as friendly urls though i.e. these work http://newdomain.com/admin/main/managewidgets/ http://newdomain.com/admin/clients/ http://newdomain.com/admin/myinfo/ http://newdomain.com/admin/settings/ http://newdomain.com/admin/logout/ So is it something to do with the template or links coded in nav links ? As I tried every version of nginx rewrite rules found on this forum and the same odd symptoms outlined above occur in all instances ? If i manually type in http://newdomain.com/admin/billing/ it works but nav links have like http://newdomain.com/index.php/admin/billing/ Some screenshots on localhost install System config CentOS 7.1 64bit Virtualbox 4 with Centmin Mod LEMP stack Nginx 1.9.0 PHP-FPM 5.4.41 MariaDB 10.0.19 CSF Firewall Nginx config