나는 내가 예를 들어 정리할이htaccess로 Rediret 동적 URL이
localhost/sumar/gallery.php?gen=slug-here
같은 URL 구조가 : localhost/sumar/gallery/slug-here
그래서 난이 조건에 대한 규칙을 다시 작성할 필요하고 다른 사람이 기본 URL http://localhost/sumar/gallery.php?gen=slug-here
에 자동으로 리디렉션하지 못하게합니다. localhost/sumar/gallery/slug-here
지금까지이 방법을 시도했습니다.
,//that works
RewriteRule ^Gallery/([A-Za-z0-9-_]+)/?$ gallery.php?gen=$1
//below one does not seems to work
RewriteCond %{THE_REQUEST} ^GET\ /sumar/gallery\.php\?gen=([\w-]+) [NC]
RewriteRule ^sumar/gallery\.php$ /sumar/Gallery/%1? [R=301,L]
디렉토리 구조 란 무엇입니까? – hjpotter92
.htaccess를 포함한 모든 파일은 –