I есть проблема с перенаправлением .htaccess. Когда я набираю:
http://www.domain.com/contact
, он попадает в index.php, а не в contact.php
, вот мой .htaccess:
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
в моем php я получаю:
<?php
print_r($_GET);
Array (
[subdomain] => www
[page] => contact.php
)
Что мне не хватает?