htaccess
을 사용하여 리디렉션해야합니다. 도와주세요. 이 URL :- http://xxx/CCKCHT/
에서 그것이htaccess 다른 폴더로 리디렉션
URL :- http://xxx/CCKCHT/lhc_web/index.php/site_admin/
htaccess
을 사용하여 리디렉션해야합니다. 도와주세요. 이 URL :- http://xxx/CCKCHT/
에서 그것이htaccess 다른 폴더로 리디렉션
URL :- http://xxx/CCKCHT/lhc_web/index.php/site_admin/
mod_rewrite를 사용하고 httpd.conf
을 통해 .htaccess로 다음에이 코드를 넣어 리디렉션하는 .htaccess
디렉토리 DOCUMENT_ROOT
미만 :
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /CCKCHT/
RewriteRule (?!^lhc_web/index\.php/site_admin/)^(.*)$ /CCKCHT/lhc_web/index.php/site_admin/$1 [L,R=301,NC]
그래서 당신이에서 리디렉션 할 :'/ CCKCHT/foo'를'/ CCKCHT/lhc_web/index.php/site_admin/foo'로 변경 하시겠습니까? – anubhava
@anubhava 그래, 이걸 원해. –