一些服务器提供 "No input file specified"
Some server giving "No input file specified"
我需要有关 htaccess 的帮助。我正在使用以下 htaccess 规则,它在某些服务器上运行良好。但是有些服务器给出 No input file specified
我已经搜索了一些关于堆栈溢出的解决方案。
RewriteRule ^(.*)$ index\.php/ [L,QSA]
例如,此 RewriteRule 将修复 RewriteRule ^(.*)$ index.php? [L]
和 No input file specified
但有些页面无法打开,例如 https://www[dot]webadress[dot]com/settings?tab=page
我需要做什么来修复No input file specified
我的 RewriteRule 中需要 QSA。
任何人都可以帮助我。
对于不存在的页面uris/requests,您可以尝试遵循以下规则。除了规则,请确保您的 index.php 位于 index.php 所在的同一文件夹中。请在测试您的网址之前清除您的浏览器缓存。
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [QSA,L]
我需要有关 htaccess 的帮助。我正在使用以下 htaccess 规则,它在某些服务器上运行良好。但是有些服务器给出 No input file specified
我已经搜索了一些关于堆栈溢出的解决方案。
RewriteRule ^(.*)$ index\.php/ [L,QSA]
例如,此 RewriteRule 将修复 RewriteRule ^(.*)$ index.php? [L]
和 No input file specified
但有些页面无法打开,例如 https://www[dot]webadress[dot]com/settings?tab=page
我需要做什么来修复No input file specified
我的 RewriteRule 中需要 QSA。
任何人都可以帮助我。
对于不存在的页面uris/requests,您可以尝试遵循以下规则。除了规则,请确保您的 index.php 位于 index.php 所在的同一文件夹中。请在测试您的网址之前清除您的浏览器缓存。
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [QSA,L]