1
다음과 같이 URL을 다시 작성하고 싶습니다. http://www.xyzdomain.com/9htaccess PHP에서 url 다시 작성
다음과 같이 URL을 다시 작성하고 싶습니다. http://www.xyzdomain.com/9htaccess PHP에서 url 다시 작성
문서 루트에 htaccess로 파일이 추가 : 내가 같이 원하는 http://www.xyzdomain.com/?page=9
:
이
는 URL입니다RewriteEngine On
RewriteCond %{THE_REQUEST} \ /+\?page=([0-9]+)
RewriteRule^/%1? [L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)$ /?page=$1 [L,QSA]
[URL 재 작성 htaccess로와 PHP의
가능한 중복 ] (http://stackoverflow.com/questions/10348472/url-rewrite-htaccess-and-php) –