2014-10-08 4 views
2

주소 표시 줄에 입력 된 하위 디렉토리 이름과 상관없이 기사 페이지를로드하는 Expression Engine 사이트를 실행합니다.htaccess를 사용하여 URL의 하위 디렉토리를 제거하십시오.

예를 들어

모든 주소 : I 중복 된 URL의 잠재적 무제한을 가지고 있기 때문에

http://hellothere.example.com/health/mental/depression 
http://cats.example.com/health/mental/depression 
http://dogs.example.com/health/mental/depression 
http://www.batman.example.com/health/mental/depression 
http://www.1.2.3.4.5.6.example.com/health/mental/depression 

은 분명히 example.com/health/mental/depression

를로드,이 검색 엔진 최적화에 대한 이상적인보다 작습니다.

htaccess를 사용하여 example.com 앞에있는 것을 제거하고 www로만 교체하는 방법을 알아 내려고합니다.

도움이 될 것입니다.

답변

관련 문제