levels-ranks-web icon indicating copy to clipboard operation
levels-ranks-web copied to clipboard

404 Errors

Open ad1k4h opened this issue 3 years ago • 3 comments

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.

ad1k4h avatar Sep 13 '22 16:09 ad1k4h

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

bjarkeh14 avatar Nov 07 '22 18:11 bjarkeh14

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

bjarkeh14 avatar Nov 23 '22 14:11 bjarkeh14

merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;

at your website config

uraganas avatar Dec 20 '22 10:12 uraganas