Itworx4me
Well-known member
Hello,
I am looking for a nginx windows setup for friendly urls. I am using Laragon with a nginx configuration. Does anyone have a setup for friendly urls?
How does one get this to work on nginx windows?
Thanks,
Itworx4me
I am looking for a nginx windows setup for friendly urls. I am using Laragon with a nginx configuration. Does anyone have a setup for friendly urls?
Code:
location /xf/ {
try_files $uri $uri/ /xf/index.php?$uri&$args;
index index.php index.html;
}
location ^~ /xf/install/data/ {
internal;
}
location ^~ /xf/install/templates/ {
internal;
}
location ^~ /xf/internal_data/ {
internal;
}
location ^~ /xf/library/ { #legacy
internal;
}
location ^~ /xf/src/ {
internal;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Thanks,
Itworx4me