2012-09-25 2 views
-3

내 사이트에 문제가 있습니다. viewprofile.php을 볼 수 없습니다.Not found : 요청한 URL /viewprofile.php를이 서버에서 찾을 수 없습니다.

여기 내 .htaccess 파일입니다.

RewriteCond %{HTTP_HOST} ^waytonikah.com [NC] 
RewriteRule ^(.*)$ http://waytonikah.com/$1 [L,R=301] 

이 규칙이 수행합니다 :

RewriteEngine on 
RewriteRule (.*)-(.*).htm$ viewprofile.php?id=$1 
RewriteRule (.*).htm$ viewprofile.php?id=$2 
RewriteRule viewads(.*)\.htm$ viewads.php?id=$1 
RewriteRule (.*)&(.*)\.htm$ homeads.php?id=$2 
RewriteRule (.*).htm$ profile_city.php?id=$1 
RewriteRule (.*).htm$ profile_cast.php?id=$1 


RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}\.php -f 
RewriteRule ^(.*)$ $1.php 
ErrorDocument 404 /viewprofile.php 

RewriteEngine on 
RewriteCond %{HTTP_HOST} ^waytonikah.com [NC] 
RewriteRule ^(.*)$ http://waytonikah.com/$1 [L,R=301] 
+0

우리가 – Gautam3164

+1

내가 어제 같은 질문을 본 것 같아요 .. –

+0

시도가 너와 넣어 것 '^'(규칙 앞 :'RewriteRule^(. *). htm $ viewprofile.php? id = $ 2') URL이 http://waytonikah.com/test.htm인지 확인하십시오. –

답변

1

이 리디렉션 루프는

  1. URL이 http://waytonikah.com/, 요청이
  2. 가 호스트 waytonikah.com가되어 있습니까?
  3. 예라면,
  4. URL이 요청은
  5. 가 호스트 waytonikah.com가되어, http://waytonikah.com/입니다 http://waytonikah.com/로 리디렉션? 그런 다음 우리에게 코드를 제공하는 경우
  6. 그렇다면, 등

, http://waytonikah.com/로 리디렉션

관련 문제