1
apacheはHTTPSをHTTPにリダイレクトします
私は私のhttps terraficをhttpにリダイレクトするためにこのhtaccessコードを使っています この単純なコードを使用してこのリダイレクトを行うと、すべてのものがうまくいきますが、それはサイト検索エンジンのリンクを壊します。 そしてそれをに変換する domain.com/search/?q= そしてjimキーワードは失われています。 RewriteEngine on RewriteRule ^category/(.*)/(.*)$ category.php?id=$1&slug=$2 RewriteRule ^source/(.*)/(.*)$ source.php?id=$1&slug=$2 RewriteRule ^news/(.*)/?$ news.php?id=$1&slug=$2 RewriteRule ^page/(.*)/(.*)$ page.php?id=$1&slug=$2 RewriteRule ^search/(.*)$ search.php?q=$1 RewriteRule ^not-found$ notfound.php [G,L] RewriteRule ^rss.xml$ rss.php RewriteRule ^lasttagmap.xml$ lasttagmap.php RewriteRule ^randtagmap.xml$ randtagmap.php RewriteRule ^sitemap-(.*).xml$ sitemap.php?id=$1 RewriteRule ^categories-sitemap.xml$ categories-sitemap.php Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} …