redirect/directsystems/education/index/name/system_one
http://www.mysite.com/directsystems/education/index/name/system-one
htaccess의 301 리디렉션 규칙을 보여 주시겠습니까? 나는 hypens
로 리디렉션하려고합니다.redirect/directsystems/education/index/name/system_one
http://www.mysite.com/directsystems/education/index/name/system-one
htaccess의 301 리디렉션 규칙을 보여 주시겠습니까? 나는 hypens
로 리디렉션하려고합니다.이 시도 :
RewriteRule ^([^_]*)_([^_]*)$ $1-$2
는 모두가 URI에 하이픈 -
와 _
을 강조 교체하려면 사용 당신의 .htaccess 파일에있는 규칙에 따라 :
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteRule ^([^\_]+)_([^\_]+)(_.*)$ /$1-$2$3 [N,DPI]
RewriteRule ^([^\_]+)_(.*)$ /$1-$2 [L,R=301,DPI]
이를 URL 리디렉션 :
http://localhost/directsystems/education/index/my_name/system_one
http://localhost//directsystems/education/index/my-name/system-one
버그/개구리 이모티콘의 일종처럼 보인다. 권자 – Wiseguy