0
我在我的.htaccess文件如下:htaccess的力量SSL與隱變量
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteRule ^([A-Za-z0-9-]+)$ index2.php?pn=$1 [L]
它重定向的URL和行之有效的。例如,而不是mydomain.com/index2.php?pn=home瀏覽器加載mydomain.com/home。我的問題是我需要每個頁面上的SSL。我已經嘗試了很多htaccess的ssl強制選項無濟於事。
感謝您的幫助。
jk
是的,我已經嘗試過在我的代碼之前和之後,它仍然不會正確重定向。任何其他想法? – Josh 2013-04-26 23:54:13
我發現了這個錯誤。謝謝! – Josh 2013-04-27 00:41:45