1
.php
확장없이 작동하도록 특정 URL을 구성하려고합니다. 예를 들어 .htaccess를 사용하여 .php없이 작동시키는 특정 URL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/library/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
# RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>