Php url重写htaccess 123reg

Php url重写htaccess 123reg,php,.htaccess,mod-rewrite,url-rewriting,Php,.htaccess,Mod Rewrite,Url Rewriting,我不知道为什么我的htaccess重写url在123reg上似乎根本不起作用。 在ovh(我的测试环境)上:http:www.luckyulucky.co.uk/mvc它工作正常 在123reg:只有索引是可访问的之后,我有一个错误404 我的访问权限: 根目录: SetEnv PHP\u第5版 SetEnv寄存器\u全局0 重写基/ 选项+FollowSymlinks 重新启动发动机 重写规则^$public/[L] 重写规则(.*)public/$1[L] 公开地 <IfModule

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

我的访问权限: 根目录:

SetEnv PHP\u第5版
SetEnv寄存器\u全局0
重写基/
选项+FollowSymlinks
重新启动发动机
重写规则^$public/[L]
重写规则(.*)public/$1[L]
公开地

<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>

重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
#将所有其他URL重写为index.php/URL
重写规则^(.*)$index.php?url=$1[PT,L]
ErrorDocument 404 index.php

这只是一场噩梦请帮帮我

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

我需要更多详细信息。问题是否发生在一台服务器上,而不是另一台服务器上?两者之间有什么区别?index.php如何处理URL?是否启用/加载了
mod_rewrite.c
,服务器配置是否允许您使用它?好的,一些谷歌搜索告诉我123reg是一个网络主机。(以后,您应该澄清类似的事情。)您应该尝试的第一件事是将
RewriteBase/
放在这两个规则集中。只有第一个。
<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>