슬래시 문제로 인해 일부 페이지가 중복되었습니다. 예 : socktail.com/shop
및 socktail.com/shop/
은 중복되어 있으며 액세스 할 수 있습니다. 이 문제를 해결하는 방법을 알려주세요. 나는 웹 기술에 익숙하지 않고 .htaccess 파일이 괜찮은지 알지도 못한다.
다음 는슬래시로 인해 페이지가 중복됩니다.
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|javascript|images|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?socktail\.com)$ [NC]
RewriteRule .? {REQUEST_URI} [R=301,L]