htaccess没有工作500内部服务器错误godaddy

时间:2016-07-13 06:30:47

标签: regex apache .htaccess mod-rewrite

我使用htaccess进行abc.org/dev

# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

我的htaccess位于 webroot / virtuals / abc.org / dev / .htaccess

当我点击 abc.org/dev 时,它会将我重定向到 abc.org/virtuals/abc.org/dev /

htaccess有问题吗?

请帮帮我。

1 个答案:

答案 0 :(得分:0)

首先,您应该尝试对其进行调试,看看它是否会将您带到Google以及是否没有错误:

<IfModule mod_rewrite.c>
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteRule .* http://google.com [L]
</IfModule>

如果您输入的内容无论您输入的是什么,或者仍然出现错误,则表示您的.htaccess未被考虑在内!

这也可以帮助您:https://stackoverflow.com/questions/2687457/mod-rewrite-with-godaddy-hosting