htaccess没有在WHM上工作

时间:2015-02-14 19:50:56

标签: .htaccess cpanel whm

我试图在这种类型的链接http://XXX.xxx.xxx.xxx/~sender0/上运行PHP应用程序 我使用的是htaccess文件

    <IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l




RewriteRule ^(.+)$ index.php?action=$1 [NC,L]


</IfModule>

系统回复htaccess错误。 我认为,因为URL有一个特殊的字符&#34;〜&#34;这可能是我的申请没有工作的原因。

1 个答案:

答案 0 :(得分:0)

您可以尝试在RewriteCond行之前添加以下代码并进行检查。

RewriteEngine on
RewriteBase /~sender0/
相关问题