Php 使用.htaccess重写URL(添加查询字符串)

Php 使用.htaccess重写URL(添加查询字符串),php,html,mysql,.htaccess,mod-rewrite,Php,Html,Mysql,.htaccess,Mod Rewrite,我想以这种方式使用.htaccess重写这个 因此,这个查询字符串“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] 尝试: 那是打字

我想以这种方式使用.htaccess重写这个

因此,这个查询字符串“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]
尝试:


那是打字错误吗<代码>&性别=男孩?有空格吗?哦,不,这只是个错误没有空格你的代码有什么问题?什么不起作用?输入时不能重定向到/index.php?fc=module&module=prenoms&controller=search&gender=boy[L]htaccess中还有其他规则吗?
Options -Multiviews
RewriteEngine On
RewriteRule ^boy\.php$ /index.php?fc=module&module=prenoms&controller=search&gender=boy [QSA,NC,L]