任何类型为
的查询字符串的网址www.example.com/categories/type1?var1=abc&var2=def
正在重写而没有查询字符串部分。即
www.example.com/categories/type1
我正在使用ubuntu 12 LAMP堆栈中的apache2服务器。我的apache .conf文件有
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AddType application/x-httpd .php
Order allow,deny
allow from all
</Directory>
我的.htaccess文件是
# 1 ---- Establish a custom 404 File not Found page ----
ErrorDocument 404 /filenotfound.php
# 2 ---- Prevent directory file listing in all of your folders ----
IndexIgnore *
RewriteEngine On
RewriteRule ^product1/([^/]*)$ /test_JSON.php?productId=$1
RewriteRule ^api/follow/([^/]*)/([^/]*)$ /follow.php?Name=$1&user=$2
RewriteRule ^category1/([^/]*)$ /$1.php [L]
RewriteRule ^ajax-product-collection/([^/]*)$ /ajax-product-collection.php/$1
RewriteRule ^categories/(.*)$ /ajax-product-base1.php [L]
有人可以告诉我导致这种行为的原因是什么吗?