url rewriting htaccess 123reg


url rewriting htaccess 123reg

我不知道为什么我的htaccess重写url在123reg上根本不起作用。在ovh(我的测试环境):http:www.luckyunlucky.co.uk/mvc上可以正常工作在123reg: http://www.petitmondelondon.co.uk只有索引是可访问的,之后我有一个错误404。

my htaccess:根:

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
RewriteBase /
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteRule    ^$    public/    [L]
RewriteRule    (.*) public/$1    [L]
</IfModule>

和公共场合

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]

</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
这只是一场噩梦,请帮帮我!

我的名字是Ray,我为123-reg工作,我可以看到petitmondelondon.co.uk注册了123-reg,但被设置为301重定向到第三方托管的域名。如果你能给我提供一个支持票号码,我将能够帮助你点域到主机,你希望你的上述代码工作。