1and1 mod_rewrite问题

Luc*_*ure 0 .htaccess mod-rewrite

我正在尝试让我的1and1主机启用mod_rewrite的.htaccess文件,它可以在我的本地wamp上运行,但它不在服务器上,

任何帮助将不胜感激!

我已经尝试删除除了mod_rewrite块之外的所有内容,问题仍然存在......

我已经要求1和1获得支持,他们在没有回答的情况下关闭了我的机票...... o_O,

请帮忙!

.htaccess文件:

#
# Dream Forgery Settings:
#
AddType x-mapp-php5 .php

RewriteEngine on
RewriteBase /

# Rewrite current-style URLs of the form 'strap.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /strap.php?q=$1 [L,QSA]
Run Code Online (Sandbox Code Playgroud)

编辑:

我无法访问apache日志,因为这是一个共享主机,但预期的功能是重定向URL,例如:

http://example.com/arg1/arg2/arg3

http://example.com/strap.php?q=arg1/arg2/arg3

(它目前正在提供404错误,只显示1和1中的404页面)

Luc*_*ure 8

在这里找到答案:

添加以下修复了mod-rewrite:

Options -MultiViews
Run Code Online (Sandbox Code Playgroud)

http://www.techpopuli.net/news/04/002289.html