亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

MyBB 重定向至 www.www

MyBB 重定向至 www.www

PHP
慕的地6264312 2023-09-15 10:15:46
我正在建立一個啟用 https 的 MyBB 論壇。我已設置并啟用 TLS,并且我的主機啟用了 https 重定向。直接鏈接如http://www.example.com/index.php并example.com/index.php正確重定向到https://www.example.com/index.php. 但任何任何嘗試都直奔https://www.example.com/去去https://www.www.example.com/。有誰對可能導致這種情況的原因有任何想法嗎?我的 .htaccess 文件如下(大部分取自 MyBB 的默認 .htaccess 設置。)    Options -MultiViews +FollowSymlinks -Indexes<FilesMatch "\.(php|html)$">    Header set Cache-Control "private, no-cache"    Header set Pragma "no-cache"</FilesMatch>## If mod_security is enabled, attempt to disable it.# - Note, this will work on the majority of hosts but on#   MediaTemple, it is known to cause random Internal Server#   errors. For MediaTemple, please remove the block below#<IfModule mod_security.c>    # Turn off mod_security filtering.    SecFilterEngine Off    # The below probably isn't needed, but better safe than sorry.    SecFilterScanPOST Off</IfModule>## MyBB "search engine friendly" URL rewrites# - Note, for these to work with MyBB please make sure you have#   the setting enabled in the Admin CP and you have this file#   named .htaccess#<IfModule mod_rewrite.c>    RewriteEngine on    RedirectMatch ^/$ news.php    RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]    RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]    RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]    RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]    RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]    RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]    RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]    RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
查看完整描述

1 回答

?
青春有我

TA貢獻1784條經驗 獲得超8個贊

事實證明這是瀏覽器緩存問題。



查看完整回答
反對 回復 2023-09-15
  • 1 回答
  • 0 關注
  • 125 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號