14
.htaccess 리디렉션에 문제가 있습니다. 내가 입력 할 때 : 내가 얻을 내 PHP에서특정 페이지에 대한 아파치 다시 쓰기 규칙 문제
Redirect 301 /clients http://clients.domain.com
RewriteEngine On
SetEnvIf Host ^www\. page=www
SetEnvIf Host ^mob\. page=mobile
RewriteBase/
SetEnvIfNoCase User-Agent "^Wget" bad_bo
#etc ...
Deny from env=bad_bot
RewriteCond %{HTTP_HOST} !^www.domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301]
RewriteRule ^about/?$ about.php
RewriteRule ^contact/?$ contact.php
rewriterule ^(.*)$ index.php?subdomain=%{ENV:page}&page=$1
:
http://www.domain.com/contact
는 index.php에 아닌 contact.php로 이동 여기 내 htaccess로의
<?php
print_r($_GET);
Array (
[subdomain] => www
[page] => contact.php
)
무엇이 누락 되었습니까?
누락 된 최종 '/'후 접촉 –
@TobyAllen'/'문제는 규칙 중 하나를 사용/표시 또는 아니 – eric