본문으로 이동

개인적인 사정으로 큰숲백과 관리를 무기한 중단합니다. 데이터베이스 덤프 관련 공지도 조만간 올리겠습니다.

  1. 큰숲백과:청사진에서 위키 발전의 대략적인 방향성을 제시했습니다. 의견이 있으신 분은 큰숲백과토론:청사진에서 의견을 남겨주시면 좋겠습니다.
  2. 기능상의 오류로 지원하지 않고 있는 기능에 대해서는 큰숲백과토론:이슈 트래커에 요약했습니다. 참고하시기 바랍니다.
  3. 큰숲백과 단축도메인 bigforest.wiki 열렸습니다.

작은숲:위키노트/아파치 mod rewrite 모듈: 두 판 사이의 차이

잔글
문자열 찾아 바꾸기 - "</source>" 문자열을 "</syntaxhighlight>" 문자열로
잔글 (문자열 찾아 바꾸기 - "<source" 문자열을 "<syntaxhighlight" 문자열로)
잔글 (문자열 찾아 바꾸기 - "</source>" 문자열을 "</syntaxhighlight>" 문자열로)
4번째 줄: 4번째 줄:
<syntaxhighlight lang="apache">
<syntaxhighlight lang="apache">
RewriteRule ^redirect$    ./redirect.php?target=%{QUERY_STRING} [L]
RewriteRule ^redirect$    ./redirect.php?target=%{QUERY_STRING} [L]
</source>
</syntaxhighlight>
이렇게 하면 쿼리 문자열로 넘어온 값을 <code>$_GET['target']</code>에 값을 넣어 제대로 넘어온다.
이렇게 하면 쿼리 문자열로 넘어온 값을 <code>$_GET['target']</code>에 값을 넣어 제대로 넘어온다.
== RewriteRule의 QSA 플래그 ==
== RewriteRule의 QSA 플래그 ==
25번째 줄: 25번째 줄:
# from http://example.com/page.php?foo=bar
# from http://example.com/page.php?foo=bar
# to  http://example.com/target.php?foo=bar&bar=baz
# to  http://example.com/target.php?foo=bar&bar=baz
</source>
</syntaxhighlight>
== 참고 ==
== 참고 ==
* [https://wiki.apache.org/httpd/RewriteQueryString Manipulating the Query String]
* [https://wiki.apache.org/httpd/RewriteQueryString Manipulating the Query String]