我想通过 .htaccess 在 php http://www.domain.com/door?door=french-doors 中将 URL 重写为 http://www.domain。 com/door/法式门
I want to rewrite URL by .htaccess in php http://www.domain.com/door?door=french-doors to http://www.domain.com/door/french-doors
请帮我重写 URL by .htaccess
http://www.domain.com/door?door=casement-doors
到
http://www.domain.com/door/casement-doors.
在你的 htaccess 中试试这个:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^door=([^&]+) [NC]
RewriteRule ^door /door/%1? [NC,L,R]
请帮我重写 URL by .htaccess
http://www.domain.com/door?door=casement-doors
到
http://www.domain.com/door/casement-doors.
在你的 htaccess 中试试这个:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^door=([^&]+) [NC]
RewriteRule ^door /door/%1? [NC,L,R]