How to create an htaccess with nginx
-
In apache is:
RewriteEngine onRewriteRule ^ login $ CONTROLLER / LogIn.php
But nginx does not work
-
@Daniel-Sam : Nginx does not support .htacess.
-
said in How to create an htaccess with nginx:
RewriteEngine on
RewriteRule ^ login $ CONTROLLER / LogIn.phpConverting Apache Rewrite Rules to NGINX Rewrite Rules:
https://www.nginx.com/blog/converting-apache-to-nginx-rewrite-rules/
Official doc's: http://nginx.org/en/docs/http/ngx_http_rewrite_module.htmlOr like this:
# nginx configuration
location / {
rewrite ^(.)$ /login $ CONTROLLER / LogIn.php;
}