http://www.naissancebebe.com/index.php?fc=module&模块=婚前协议&controller=搜索&性别=男孩
我想用.htaccess重写这个
http://www.naissancebebe.com/boy.php
因此,这个查询字符串"index.php?fc=module&module=prenoms&controller=search&gender=boy"添加到.htaccess文件中。
这是我的代码
#RewriteEngine On
RewriteRule ^boy.php /index.php?fc=module&module=prenoms&controller=search&gender=boy [L]
尝试:
Options -Multiviews
RewriteEngine On
RewriteRule ^boy'.php$ /index.php?fc=module&module=prenoms&controller=search&gender=boy [QSA,NC,L]