...htaccess 다중 레벨 디렉토리 재 작성 규칙에 어떤 문제가 있습니까? 내 htaccess로 몇 가지 문제가
내 URL의이 같은를 갖고 싶어 :
문제는 http://example.com "을 제외한 URL의 모든 작업입니다http://example.com/artist/
http://example.com/artist/rihanna/
http://example.com/artist/rihanna/biography/
http://example.com/artist/rihanna/video/
http://example.com/artist/rihanna/news/
/아티스트/"
RewriteRule ^artist/([^_]*)/biography/$ /artist-biography.php?name=$1 [L]
RewriteRule ^artist/([^_]*)/biography?$ /artist/$1/biography/ [R=301,L]
RewriteRule ^artist/([^_]*)/video/$ /artist-video.php?name=$1 [L]
RewriteRule ^artist/([^_]*)/video?$ /artist/$1/video/ [R=301,L]
RewriteRule ^artist/([^_]*)/news/$ /artist-news.php?name=$1 [L]
RewriteRule ^artist/([^_]*)/news?$ /artist/$1/news/ [R=301,L]
RewriteRule ^artist/([^_]*)/$ /artist.php?name=$1 [L]
RewriteRule ^artist/([^_/]+)$ /artist/$1/ [R=301,L]
RewriteRule ^artist/$ /artist-page.php [L]
RewriteRule ^artist?$ /artist/ [R=301,L]
'http : // example.com/artist /'에 액세스하려고하면 어떻게됩니까? –
백 슬래시 유무에 관계없이 "페이지가 올바르게 리디렉션되지 않음" – m3tsys