配置.htaccess文件

时间:2016-04-10 14:44:11

标签: .htaccess

我的htaccess文件给我的网页一个500错误,我不明白为什么...... 这是它的代码:

 AddHandler application/x-httpd-php56 .php
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ /gallery-page.php?galerie=$1

如果我取走.htaccess文件,那么我在需要重命名的页面上会出现404错误。

如果我的.htaccess文件中没有代码,我仍然会收到错误500.

如果有人能帮助我理解,那就太棒了!

0 个答案:

没有答案
相关问题