- domain.com
- www.domain.com
- http://domain.com
- http://www.domain.com
내가 CodeIgniter의 프레임 워크를 사용하고 있습니다. .htaccess를 변경하면 어떻게 관리 할 수 있습니까?
나는 당신이 사용할 수있는 htaccess로
코드 아래<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteBase /demo
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
주 당신의 .htaccess – Naincy
을 당신은 당신의 htaccess로 함께 할 수 있습니다. –
[htaccess redirect to https : // www]의 가능한 복제본 (http://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www) – drmonkeyninja