我正在尝试从web根目录的子目录中重写一个url。
http://mysite.com/wiki/index.php/Main_Page
到这个(注意问号):
http://mysite.com/wiki/index.php?Main_Page
我在这里做错了什么? (维基/ htaccess的)
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^index\.php/(.*)$ ./index.php?$1 [PT,L,QSA]
这两行就是这样排序的:
RewriteEngine On RewriteRule ^index\.php/(.*)$ index.php?title=$1 [PT,L,QSA]