HTTP错误404.0-在PHP中找不到

HTTP错误404.0-在PHP中找不到,php,.htaccess,Php,.htaccess,我已经在核心php上建立了我的网站。。它在本地主机(Wamp服务器)上运行良好。但今天我刚把它上传到网上,我发现了这个错误:- HTTP错误404.0-找不到 您正在查找的资源已被删除、名称已更改或暂时不可用 我在我的网站上使用htaccess,这是我的htaccess文件代码 php_flag display_errors off php_flag log_errors On php_value error_log Logs/PHPError.log php_flag html_erro

我已经在核心php上建立了我的网站。。它在本地主机(Wamp服务器)上运行良好。但今天我刚把它上传到网上,我发现了这个错误:-

HTTP错误404.0-找不到 您正在查找的资源已被删除、名称已更改或暂时不可用

我在我的网站上使用htaccess,这是我的htaccess文件代码

 php_flag display_errors off 
php_flag log_errors On 
php_value error_log Logs/PHPError.log
php_flag html_errors off
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_reporting 6143
php_value log_errors_max_len 0
php_value register_globals 0 
php_value session.auto_start 0 
ServerSignature Off
DefaultLanguage en
AddDefaultCharset UTF-8
AddCharset UTF-8 .css
IndexOptions +FancyIndexing
Options +FollowSymLinks -Indexes -ExecCGI
AddHandler application/x-httpd-php .htm
AddHandler application/x-httpd-php .html

<IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType image/gif A2592000
       ExpiresByType image/png A2592000
       ExpiresByType image/jpeg A2592000
       ExpiresByType image/x-icon A2592000
       ExpiresByType application/pdf A2592000
       ExpiresByType application/x-javascript A2592000
       ExpiresByType text/plain A2592000
       ExpiresByType text/css A10800
</IfModule>

<IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteRule ^404$ 404.php 
       RewriteRule ^home$ index.php
       RewriteRule ^Login$ login.php
</IfModule>

ErrorDocument 403 /404.php
ErrorDocument 500 /404.php

<FilesMatch "\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

<FilesMatch "^(index|404)\.php$">
    Order Allow,Deny
    Allow from all
</FilesMatch>
php\u标志显示\u错误关闭
上的php_标志日志_错误
php\u值错误\u日志/phperor.log
关闭php_标志html_错误
php_标志忽略_重复错误关闭
php_标志忽略_重复_源关闭
php_标志报告_memleaks on
php_标志跟踪上的错误
php_值docref_根0
php_值docref_ext 0
php_值错误_报告6143
php\u值日志\u错误\u最大值\u长度0
php\u值寄存器\u全局0
php_值session.auto_启动0
服务器签名关闭
默认语言
AddDefaultCharset UTF-8
AddCharset UTF-8.css
索引选项+繁体索引
选项+FollowSymLinks-索引-ExecCGI
AddHandler应用程序/x-httpd-php.htm
AddHandler应用程序/x-httpd-php.html
过期于
ExpiresByType图像/gif A2592000
ExpiresByType图像/png A2592000
过期按类型图像/jpeg A2592000
ExpiresByType图像/x图标A2592000
按类型申请过期/pdf A2592000
ExpiresByType应用程序/x-javascript A2592000
ExpiresByType文本/普通A2592000
ExpiresByType文本/css A10800
重新启动发动机
重写规则^404$404.php
重写规则^home$index.php
重写规则^Login$Login.php
ErrorDocument 403/404.php
ErrorDocument 500/404.php
命令允许,拒绝
全盘否定
命令允许,拒绝
通融
有人能帮我找出解决这个问题的办法吗? 我已经尝试与我的主机提供商联系,他们回答我,这是开发人员的问题,而不是主机问题。。但是我注意到我需要启用 “重写_模块”以使用htaccess。。是吗? 也许有人能帮我做这件事。。
提前感谢

使用
.htaccess
样式文件不需要重写模块。但是您的
.htaccess
样式文件确实使用了重写模块(
RewriteEngine on…
)。所以它可能应该被启用…嗨,伙计,是的,我注意到一切都很好,只是我与我的网络托管提供商有一些麻烦,他们给了我解决方案。。因此,现在我使用web.config而不是.htaccess,我认为它可以工作,但我仍然需要配置与.htaccessAh相同的web.config文件,好吧,如果您的主机不使用apache http服务器而是使用MS-IIS,那么显然.htaccess样式的文件将无法工作:-)顺便说一句:这似乎是一个非常奇特的提供程序。你也会遇到很多其他问题,因为这意味着你网站的基础不是LAMP(Linux),而是MS Windows。这在这种情况下是不常见的,也是不安全的。祝你好运!:-)嗯,是的,我注意到这个服务器上没有apache。。。我不能更改我的服务器,因为我已经为此支付了费用。。我还有其他一些原因。。。所以我想我只有一种方法,那就是配置这个web.config文件。是的,正如你所说,我会遇到很多其他问题:D