重写所有网址以保护索引

时间:2015-02-16 18:39:43

标签: php html .htaccess

我目前在.htaccess中使用此代码将所有流量路由到SSL

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

由于这也是一个目标网页,我还希望将www.example.com/testing,www.example.com/?testing=anything,etc等网址发送回索引页{{3} }

0 个答案:

没有答案
相关问题