的1and1 mod_rewrite的问题 [英] 1and1 mod_rewrite issues
问题描述
目前,我想有我的1and1主机.htaccess文件与mod_rewrite的启用,它工作在我的本地WAMP,但它不会在服务器上,
I'm currently trying to have my 1and1 host an .htaccess file with mod_rewrite enabled, it works on my local wamp, but it doesn't on the server,
任何帮助将是很大的AP preciated!
Any help would be greatly appreciated!
我试着删除一切,但mod_rewrite的块和问题仍然存在...
I've tried removing everything but the mod_rewrite block and the issue still persists...
我问过1和1的支持,他们关闭我的票没有回答...... O_O,
I've asked 1&1 for support, they closed my ticket without answering... o_O,
请帮忙!
.htaccess文件:
.htaccess file:
#
# 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]
编辑:
我没有访问Apache日志,因为这是一个共享的主机,但预期的功能是重定向的URL,例如:
I don't have access to apache logs as this is a shared hosting, but the functionality expected is to redirect urls for example:
http://example.com/arg1/arg2/arg3
到
http://example.com/strap.php?q=arg1/ ARG2 / ARG3
(它是目前给予404错误,从1安培只有404页; 1显示了)
(it is currently giving 404 errors, only the 404 page from 1&1 shows up)
推荐答案
找到了答案在这里:
添加以下固定mod-rewrite:
Adding the following fixed the mod-rewrite:
Options -MultiViews
<一个href="http://www.techpopuli.net/news/04/002289.html">http://www.techpopuli.net/news/04/002289.html
这篇关于的1and1 mod_rewrite的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!