Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮我用 .htaccess 重写 URL
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]