리다이렉트를 구현하려면, 모듈들을 이용하는 방법과 기타 방법들이 있다.
1. Redirect 관련 모듈들
버전 7용 추가) http://drupal.org/project/redirect
- 설치/활성화 후 admin/config/search/redirect/ 에 설정화면이 있다.
버전 6,7용 둘 다 존재하는 모듈)
http://drupal.org/project/globalredirect
http://drupal.org/project/path_redirect
- 단점 : Locale 모듈과 동시 사용시 /ko /ja /en ... 등이 자동으로 붙어 비실용적.
http://drupal.org/project/taxonomy_redirect
http://drupal.org/project/pathologic
위 모듈들은 인터페이스를 찾기와 사용하기 다소 어려운 편이다.
2. 심볼릭 링크를 이용해서 (404 에러 등을 방지하면서) 유도하는 방법이 있다.
하지만 이 방법을 이용하면, 외부의 틀린 링크를 수정할 기회를 놓친다.
3. 제일 확실한 방법은 드루팔 최상단에 있는 .htaccess를 수정하는 방법일 게다.
.htacess 기존 :
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
Recent comments
3 years 47 weeks ago
3 years 48 weeks ago
6 years 23 weeks ago
6 years 24 weeks ago
9 years 9 weeks ago
9 years 9 weeks ago
9 years 11 weeks ago
9 years 11 weeks ago
9 years 31 weeks ago
9 years 38 weeks ago