-1
- 如果我打開鏈接http://www.example.com/friednly-url/它的工作。
- 如果我打開鏈接https://www.example.com/friednly-url/它會拋出404 錯誤。
- 如果我打開鏈接https://www.example.com/file.php它的工作原理。
我.htaccess
文件看起來像這樣:友好的URL不適用於HTTPS
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Rewriterule ^(friendly-url) index.php?file=first&cat_id=0,01
難道我錯過了什麼?我不知道,爲什麼我無法使用HTTPS打開友好的網址。