Slir(图像操纵器)在服务器上不起作用



我刚刚将我的内容上传到我的新网站(服务器),并注意到 Slir 停止工作。我阅读了一些论坛板,并注意到这可能是路径问题。

有谁确切地知道 Slir 需要编辑或更改什么才能工作?

我的主目录是/home/username/public_html

我在slir.configuration中使用了这条路径,但它仍然不起作用。我收到了Page Not Found.

我也使用codeigniter和php作为参考。

本地主机 slir 工作正常,无需任何配置。

在一些博客上,我读到slir可能在.htaccess上遇到了问题,但我不太熟悉改变它。

# Prevent other scripts from interfering with SLIR
php_value auto_prepend_file none
php_value auto_append_file none
# Pretty URLs
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=40]
RewriteRule . index.php [L]
</IfModule>
# Prevent viewing of the error log file in its default location
<Files slir-error-log>
Order Deny,Allow
Deny from All
</Files>

更多信息

我刚刚与网络托管IT部门进行了交谈,他们提到一次只能访问一个.htaccess。他不得不关闭根.htaccess才能使用slir .htaccess

如何在我的 VPS 服务器上解决此问题?

问题已修复!

固定

只需注释掉前 2 个项目,它就奏效slir .htaccess了!

# Prevent other scripts from interfering with SLIR
#php_value auto_prepend_file none
#php_value auto_append_file none
# Pretty URLs
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=40]
RewriteRule . index.php [L]
</IfModule>
# Prevent viewing of the error log file in its default location
<Files slir-error-log>
Order Deny,Allow
Deny from All
</Files>

最新更新