1
blog.byperte.com/blog/article
을 blog.byperte.com/article
으로 리디렉션하고 싶습니다. 블로그는 앵커 CMS 기반으로 다음과 같은 htaccess로 파일을 가지고있다 :.htaccess를 사용하여 URL에서 단어를 제거하는 방법은 무엇입니까?
Options -indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
기사 ID 또는 제목과 같은 URL (blog.byperte.com/blog/article)과 함께 전송되는 매개 변수가 있습니까? –
나는 그렇게 생각한다. PHP는 내 강한 의도가 아닙니다. – perte