htaccess를 사용하여 하위 디렉터리를 다른 디렉터리로 리디렉션시키기
2018. 5. 3. 11:04
.htaccess를 사용하여 하위 디렉터리를 다른 하위 디렉터리로 리디렉션시켜야 하는 경우, 다음 코드를 사용할 수 있습니다.Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^test/(.*)$ /new/$1 [L,NC,R=302] 위의 코드를 사용하면 www.example.com/test/ 폴더 아래의 내용을 www.example.com/new/ 폴더로 리디렉션됩니다. 참고: Redirect folder to another with htaccess, https://coolestguidesontheplanet.com/redirecting-a-web-folder-directo..
더 보기...
최근댓글