2013-09-16 7 views
0

갑자기 아침에 내 사이트에 액세스하는 데 문제가 있습니다. 아무런 변경 작업을 수행하지 않아서 문제가 무엇인지 잘 모릅니다. 내 .htaccess 파일과 관련이 있다고 생각합니다.htaccess 리디렉션 루프 만 홈 페이지에

내 사이트의 다른 모든 페이지는 문제없이 액세스 할 수 있습니다.

다음은 내 htaccess 파일입니다. 어떤 도움을 주시면 감사하겠습니다. 미리 감사드립니다.

Options -Indexes 
Options +FollowSymLinks 

RewriteEngine on 
RewriteRule ^hats-n-caps/(.*)$ http://www.domain-domain.com/apparel/hats-n-caps/$1 [R=301,L] 
RewriteRule ^electronics/laser-pointers/(.*)$ http://www.domain-domain.com/desktop-office/laser-pointers/$1 [R=301,L] 
#RewriteCond %{HTTP_HOST} !^www.domain-domain.com$ [NC] 
#RewriteRule ^(.*)$ http://www.domain-domain.com/$1 [L,R=301] 

RewriteCond %{REQUEST_URI} (^(.*)/site-map) 
RewriteRule ^site-map$ /inc/pages/site-map.php [L] 
RewriteCond %{REQUEST_URI} (^(.*)/site-map/products-([0-9]+)) 
RewriteRule ^site-map/products-([0-9]+)$ /inc/pages/site-map.php?type=product&page=$1 [L] 
RewriteCond %{REQUEST_URI} (^(.*)/site-map/catalogs-([0-9]+)) 
RewriteRule ^site-map/catalogs-([0-9]+)$ /inc/pages/site-map.php?type=catalog&page=$1 [L] 
RewriteCond %{REQUEST_URI} (^(.*)/site-map/pages-([0-9]+)) 
RewriteRule ^site-map/pages-([0-9]+)$ /inc/pages/site-map.php?type=pages&page=$1 [L] 

RewriteCond %{REQUEST_URI} (^(.*)-p-(.*).html*) 
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}[L] 
RewriteCond %{REQUEST_URI} (^(.*)-c-(.*).html*) 
RewriteRule ^(.*)-c-(.*).html$ product_info.php?catalog_id=$2&%{QUERY_STRING}[L] 
RewriteCond %{REQUEST_URI} !(^(.*)-c-(.*).html*|^(.*)-p-(.*).html*|^/index.php|^/sitemap.xml.*|^/info.php.*|^/google_base_feed.xml.*|^/BingSiteAuth.xml.*|^/test.html.*|^/test.*|^/ajaxplorer.*|/livechat.*|^/phpmyadmin.*|^/ControlPanel.*|^/actikare.*|^/amwater.*|^/phi.*|^/sas.*|^/blog.*|^/cfscg.*|^/chase.*|^/cleaver.*|^/clubz.*|^/medicone.*|^/net2ftp.*|^/college-net.*|^/ducks.*|^/fast-teks.*|^/gatesgroup.*|^/guesthouse.*|^/neighborcare.*|^/pdf.*|^/reedrill.*|^/survey.*|^/temp.*|^/templates.*|^/tidewater.*|^/tuthill.*|^/uploads.*|^/upload.*|^/_include.*|^/product_info.*|^/server_request.*|^/server_request_products.*|^/admin.*|^/img/.*|^/images/.*|^/spaw2?|^/static/.*|^/tmp/|^/_include/|^/robots.txt|^/LiveSearchSiteAuth.xml|^/favicon.ico|/SiteReturn/.*|^/inc/pages/site-map.php(.*)|^/carousel_products.php) 
RewriteRule (.*)$ /index.php [L] 
RewriteCond %{HTTP_HOST} ^domain-domain.com$ [OR] 
RewriteCond %{HTTP_HOST} ^www.domain-domain.com$ 
RewriteRule ^/?$ "\/" [R=301,L] 


RewriteCond %{HTTP_HOST} ^domaindomain\.co$ [OR] 
RewriteCond %{HTTP_HOST} ^www\.domaindomain\.co$ 
RewriteRule ^/?$ "\/" [R=301,L] 

답변

0

이 줄 :

RewriteRule ^/?$ "\/" [R=301,L] 

이 리디렉션 루프를 일으키는 것입니다. 전체 규칙을 제거 :

# RewriteCond %{HTTP_HOST} ^domaindomain\.co$ [OR] 
# RewriteCond %{HTTP_HOST} ^www\.domaindomain\.co$ 
# RewriteRule ^/?$ "\/" [R=301,L] 

그것은 본질적으로 자신에게 루트 / 요청을 리디렉션합니다.

+0

감사합니다. 그러나 문제가 해결되지 않았습니다. – Robert

+0

@ 로버트 브라우저의 캐시를 지우셨습니까? 301 리디렉션은 영구적이며 브라우저는 항상 캐시합니다. –

+0

예, 했어요. 뿐만 아니라 3 가지 브라우저에서 시도했습니다. – Robert