我试图做一个查询字符串重写查询字符串的.htaccess
http://www.example.com/library.php?q=abscessed-tooth
的一个非常简单的重写
http://www.example.com/library/abscessed-tooth
这是我写在我的代码。 htaccess文件,它是无所事事
RewriteEngine On
RewriteRule ^/library/?([^/]*)/?\/http://www.example.com/library.php?q=$1 [L]
什么是重写后产生的网址是什么?还是根本不重写?请更确切地说明你的问题到底是什么。 – thomaux
因此不能重写所有..这是我已经写在我的htaccess文件 RewriteEngine叙述在 重写规则^库/([^ /] *)http://173.192.186.220/~newmedia/dev/ allsmile/library.php?q = $ 1 [L] –