0
我從來沒有編輯的.htaccess文件之前,所以對不起我的可怕企圖重寫htaccess文件的URL - 刪除查詢字符串
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteCond %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^(.*)$ http://example.site/index/%1 [R=302,L]
我tryting改寫http://ex.com/shop/?s=sa看起來像http://ex.com/shop/sa
你能解釋一下你想要完成什麼嗎? – LvS
嗨,我已更新 –
'RewriteCond%{THE_REQUEST}「\ s/shop/\?s =(\ w *)\ s」' - >'RewriteRule ^「http://example.site/shop/%1 ?」 [R = 302,L]' – Deadooshka