公開賽:zalora-kupon-kode-diskon-voucher-promosi/
重定向舊的URL到新的URL,但舊的URL顯示在新的URL
結果:http://www.situskupon.com/toko/zalora_indonesia-2.html?zalora-kupon-kode-diskon-voucher-promosi
,你會發現後,舊的URL?
有什麼不對?
這是我的htaccess:
# Follow symbolic links in this directory.
Options +FollowSymLinks
IndexOptions +Charset=UTF-8
AddDefaultCharset UTF-8
RewriteEngine on
RedirectMatch 301 zalora-kupon-kode-diskon-voucher-promosi/ http://www.situskupon.com/toko/zalora_indonesia-2.html
RedirectMatch 301 lazada-kupon-kode-diskon-voucher-promosi/ http://www.situskupon.com/toko/lazada_indonesia-3.html
RedirectMatch 301 hostgator-kupon-kode-diskon-voucher-promosi/ http://www.situskupon.com/toko/hostgator-5.html
RewriteCond %{HTTP_HOST} ^situskupon\.com [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9-_]+)/$ index.php?$1 [QSA,L]
## This should be a normal page
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9-_]+)-(\d+).html$ index.php?pages=$2 [QSA,L]
## This should be a page from the theme
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9-_]+)-(\d+).html$ index.php?$1=$3 [QSA,L]
## This should be a page from theme 2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9-_]+).html$ index.php?tpage=$1 [QSA,L]
## This should be a plugin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9-_]+).(php|html|xml)$ index.php?$1=$2&ext=$3 [QSA,L]
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorDocument 500 /index.php
你好,這個解決方案運作良好。解決。 –
很高興爲你效勞。爲了表明問題已解決,請將答案標記爲「已接受」(點擊左側的勾號)。然後,這個問題從未答覆的問題隊列中解決。非常感謝,謝謝。 – MrWhite