levelsranks / web-levels_ranks

Adaptive WEB Interface for Levels Ranks statistics plugin
GNU General Public License v3.0
140 stars 100 forks source link

404 Errors #163

Open ad1k4h opened 2 years ago

ad1k4h commented 2 years ago

Hello, i installed your Project, and having issues with it.

2022/09/13 18:14:27 [error] 12000#12000: *18 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: res in /var/www/nginx/stats/app/includes/js_controller.php on line 220" while reading response header from upstream, client: 192.168.100.1, server: 192.168.100.1, request: "POST /stats//app/includes/js_controller.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "192.168.100.1", referrer: "http://192.168.100.1/stats/"

I noticing there are two backslashes at /stats//app. May i ask, how can i fix this and get it work?

Nginix is well configured.

bjarkeh14 commented 1 year ago

@ad1k4h I have the same problem, did you find a way to fix it?

bjarkeh14 commented 1 year ago

I'm running the website on Windows.

I found the solution. The problem is that .htaccess is not working in IIS, but you can converte it.

  1. In IIS, double-click on the URL Rewrite module
  2. In the Actions pane, click Import Rules
  3. Select the .htaccess file for the website folder, and click Apply
  4. Boom, your .htaccess rules are converted into IIS web.config
uraganas commented 1 year ago
merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;

at your website config