# 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;
}
Question
1edo
Hi,
I'm testing blesta 3 and 4 beta 4 with nginx, php 7.0 and php-fpm, works well but for some reason, in url appears https://midomain.com/index.php instead https://midomain.com/ this produce long url
example https://midomain.com/index.php/client/login/
source: https://github.com/cloudrck/blesta-nginx/blob/master/sites-available/blestav3
Someone configured it to be this way?
Thanks!
Rgds,
Edo
3 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.