Questions tagged «lightspeed»

17
如何检查是否在服务器上启用了mod_rewrite?
目前,我正在将主机与lightspeed服务器一起使用。托管说mod_rewrite已启用,但我无法在那里运行脚本。每当我尝试访问URL时,它都会返回404-找不到页面。 我将相同的代码放在另一台运行Apache的服务器上。它在那边工作。所以我想这是.htaccess和mod_rewrite问题。 但是托管支持仍然坚持要求我启用他们的mod_rewrite,因此我想知道如何检查它是否真正启用。 我试着核对一下phpinfo(),但没有运气,我找不到mod_rewrite那里,是因为他们正在使用lightspeed吗? 有什么办法可以检查吗?请帮帮我。谢谢。 仅供参考:我的.htaccess代码是 Options -Indexes <IfModule mod_rewrite.c> DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] </IfModule> 我也这样尝试过 DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ./index.php/$1 [L,QSA] 但结果相同。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.