BoostN
Well-known member
Using NGINX, what rule do I need to rewrite the forum.php to the index.php?
Current config:
I tried adding: rewrite /(forum.php)$ /forum/index.php last; to my forum block but no luck..
Current config:
Code:
location /{
rewrite ^/(.*) http://www.$server_name/forum/ permanent;
}
location /forum/ {
index index.php index.html index.htm;
try_files $uri $uri/ /forum/index.php?$uri&$args;
}
location /forum/internal_data/ {
internal;
allow 127.0.0.1;
deny all;
}
location /forum/library/ {
internal;
allow 127.0.0.1;
deny all;
}
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;
}
I tried adding: rewrite /(forum.php)$ /forum/index.php last; to my forum block but no luck..