# Ported from Blesta's .htaccess
# There are more than one way to accomplish this.
# You can use try_files rather than using IF ... rewrite;
location / {
error_page 404 = @blesta; #IF file doesn't exist
log_not_found off;
# For access to install file
if ($request_uri ~ "^(.*)/install.php$"){
rewrite install.php /%1/install/ redirect;
}
}
#Core rewrite
location @blesta {
rewrite ^(.*)$ /index.php last;
}
This works, but for some reason when navigate for blesta, the url include index.php, example
h ttp://blesta.midomain.com/index.php/client/login
Question
smicroz
Hi,
I install blesta in nginx webserver, I add
This works, but for some reason when navigate for blesta, the url include index.php, example
h ttp://blesta.midomain.com/index.php/client/login
instead of
h ttp://blesta.midomain.com/client/login
Any suggestion?
Rgds
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.