라엘이는 요즘 사이트를 만들때 주소를 의미있게 만든다.
이런 주소는 SEO라고 검색이 더 잘된다.
또는 일부러 확장자를 이상하게 만든다.
다음은 그 중의 일부.
/company/intro.php 파일이 있다면 다음 코드를 적용하면
/company/intro.jsp 라고 요청해도 응답이 된다.
물론 해당파일은 php파일이다.
| 1 2 3 4 5 6 7 8 9 10 | <IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{REQUEST_URI} \.jsp$RewriteRule ^(.*)\.jsp$ /$1\.php [L]</IfModule> |
Conversation
In the margins
0 notes
No comments yet. Be the first to leave a note.