October 3, 2019 Network

Bludit-cms rewrite/redirect rules in subdirectory within Nginx location block

Bludit CMS Support Nginx

Bludit supports Nginx and is a recommended option for a web server. Bludit has its own router which handles all requests and responses. The idea is to redirect all requests to the index.php file.

Considerations:

  • The webserver is running PHP-FPM as CGI Process Manager
  • PHP-FPM is listen on Unix socket on unix:/run/php/php-fpm.sock.

via https://docs.bludit.com/en/webservers/nginx

Bludit CMS Documentations also offer the HTTP set up configs at above-mentioned link.

Subdirectory Rewrite/Redirect Rules with Nginx

But if you want to install Bludit in subdirectory, the Nginx .conf file is exist, and now you just add following code in that .conf file.

    location /subdirectory/ {
        try_files $uri $uri/ /subdirectory/index.php?$args;
    }

Remember repacle subdirectory with your foler name.

That's all.
Oct 3, 2019

© 2023 Lab x LingData. All Rights Reserved
Theme by BlThemes - Powered by Bludit