1
所以站點檢測到該cookie =英國好,但是當我試圖重定向的.htaccess重定向cookie來新的URL所有結尾的網址
來源:http://example.com/page/page-name到:http://example.com/uk/page/page-name
任何URL工作我希望在/ uk /中添加一些方法,因爲某些原因它似乎正在添加到index.php中。
RewriteEngine On
RewriteCond %{HTTP_COOKIE} country=uk; [NC]
RewriteRule ([^/])/uk/? /$1$2/ [L,R=301]
什麼是原始URL,什麼URL應該是被重定向到? – anubhava
編輯我和從網址 – Blynn