Any PHP based software like WordPress, Mambo, Joomla, Drupal, MODx etc. will serve pages both from http://your-site.com as well as http://your-site.com/index.php . 어떤 php 기반 소프트웨어를 같이 wordpress, 맘보, joomla, Drupal -, modx 등 http://your-site.com 섬길 것입니다 페이지를 둘 다에서 http://your-site.com/index.php뿐만 아니라합니다. This creates duplicate content for search engines, which may then decide to penalize your site for duplicate content. 이렇게하면 중복되는 콘텐츠를 검색 엔진에 귀하의 사이트에 벌점을 적용할 수있는 5 월 다음 중복되는 콘텐츠를하기로 결정합니다. You can safely prevent duplicate content with the following apache code / directive added to your .htaccess file (or in httpd.conf): 다음과 같은 중복되는 콘텐츠를 안전하게 예방하실 수있습니다 아파치 코드 / 지침에 추가됩니다. htaccess 파일 (또는 httpd.conf) :

RewriteEngine On 위에 RewriteEngine에
#Redirect plain index.php to home page without index.php # index.php을 홈 페이지로 리디렉션하지 않고 일반 index.php
RewriteCond %{IS_SUBREQ} false / RewriteCond % (is_subreq) 허위
RewriteRule ^/index\.php$ http://blog.taragana.com [R=301,L] rewriterule ^ / 색인 \합니다. $ http://blog.taragana.com [연구 = 301, 패]

Replace http://blog.taragana.com with the url of your own site. 자신의 사이트를 대체합니다 http://blog.taragana.com로합니다.

What it does is redirect (301 - permanent redirect) all access to /index.php to / 무슨 상관이 리디렉션 (301 - 영구적인 리디렉션)의 모든 접근을 / index.php에서 /
However it does not redirect for internal requests. 그러나 내부 요청을 리디렉션하지 않습니다. This is very important because when you are fetching http://blog.taragana.com, Apache actually creates an internal redirect to http://blog.taragana.com/index.php 이것은 매우 중요하다 http://blog.taragana.com 반입하는 경우, 아파치 사실은 내부 리디렉션 http://blog.taragana.com/index.php 생성

The RewriteCond above ensures that only external accesses (from browsers, search engine bots etc) are only redirected to the canonical url of the site. 상기 보장하는 유일한 외부 접근 the / RewriteCond (브라우저, 검색 엔진 로봇 등)은 정식 url의 사이트로 리디렉션합니다.

Also it doesn’t redirect requests like this 또한 그것은 이런 요청을 리디렉션하지 않습니다 http://blog.taragana.com/index.php/archive/java-application-security-through-static-analysis/ , which contains index.php as part of the url. 포함하고있는 index.php의 일환으로합니다. Only the exact url http://blog.taragana.com/index.php is redirected to http://blog.taragana.com 전용의 정확한 http://blog.taragana.com http://blog.taragana.com/index.php가로 리디렉션