-2

私はすべて新しいwebhoshttp://www.godaddy.com/をセットアップgodaday、このホスティングに自分のWebサイトをアップロードしました。今問題は私の.htaccessが働いていないということです。

ちょうど404エラーページが働いています.htaccess

私の.htaccesファイルコードは:

RewriteEngine on
RewriteRule ^(.)web(.).html /webdetail.php?t=$1&webid=$2 [L]
RewriteRule ^c/([^/\.]+)/?$ catagory.php?cat=$1 [L]
RewriteRule ^c/(.)/(.) /catagory.php?page=$1&cat=$2 [L]
RewriteRule ^c-p/(.) /catagory.php?page=$1 [L]
RewriteRule ^c/ catagory.php
RewriteRule ^statep/(.)/(.)/(.) /state.php?state=$1&cat=$2&page=$3 [L]
RewriteRule ^statep/(.)/(.) /state.php?state=$1&page=$2 [L]
RewriteRule ^state/(.)/(.) /state.php?state=$1&cat=$2 [L]
RewriteRule ^state/(.) /state.php?state=$1 [L]
RewriteRule ^statep /state.php
RewriteRule ^cityp/(.)/(.)/(.) /city.php?city=$1&cat=$2&page=$3 [L]
RewriteRule ^cityp/(.)/(.) /city.php?city=$1&page=$2 [L]
RewriteRule ^city/(.)/(.) /city.php?city=$1&cat=$2 [L]
RewriteRule ^city/(.) /city.php?city=$1 [L]
RewriteRule ^cityp /city.php
RewriteRule ^recentvisit/(.) /recentvisit.php?page=$1 [L]
RewriteRule ^mostvisited/(.) /mostvisited.php?page=$1 [L]
RewriteRule ^allcategorys/(.) /allcategorys.php?page=$1 [L]
RewriteRule ^recentvisit recentvisit.php
RewriteRule ^mostvisited mostvisited.php
RewriteRule ^allcategorys allcategorys.php
RewriteRule ^sms/(.) /sms.php?cat=$1 [L]
RewriteRule ^webs/(.)/(.) /webdetail.php?webid=$1&t=$2 [L]
RewriteRule ^mailwebs/(.)/(.) /mailtocompany.php?webid=$1&t=$2 [L]
RewriteRule ^contactus contactus.php
RewriteRule ^(.)state(.)/(.) /state.php?state=$1&cat=$2&page=$3 [L]
RewriteRule ^(.)state/(.) /state.php?state=$1&page=$2 [L]
RewriteRule ^(.)-state(.).html /state.php?state=$1&cat=$2 [L]
RewriteRule ^(.)state.html /state.php?state=$1 [L]
RewriteRule ^(.)-city(.)/(.) /city.php?city=$1&cat=$2&page=$3 [L]
RewriteRule ^(.)city/(.) /city.php?city=$1&page=$2 [L]
RewriteRule ^(.)-city(.).html /city.php?city=$1&cat=$2 [L]
RewriteRule ^(.)-city.html /city.php?city=$1 [L]
RewriteRule ^(.)-tag/(.) /catagory.php?cat=$1&page=$2 [L]
RewriteRule ^(.)-tag.html /catagory.php?cat=$1 [L]
ErrorDocument 404 http://www.mydomain.com/error.php

私はphpを使用しています

4

1 に答える 1

1

正しいデフォルトを設定するために、.htaccessに以下を追加してみてください。

     RewriteBase / 
     ErrorDocument 404 default
     Options +FollowSymLinks
于 2012-09-10T22:14:40.720 に答える