.htaccess的规则不起作用

.htaccess的规则不起作用,.htaccess,.htaccess,我从一个项目开始买我需要显示我的网址没有奇怪的字符像“?=”。。。 我正在尝试构建我的.htaccess,但从未成功 事实上,我: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} !=/favicon

我从一个项目开始买我需要显示我的网址没有奇怪的字符像“?=”。。。 我正在尝试构建我的.htaccess,但从未成功

事实上,我:

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteBase /    
RewriteRule ^product/(.+)$ index.php?section=details&product=$1
</IfModule>
我在档案里错了什么


谢谢

不是RewriteRule专家,而是您的正则表达式
RewriteRule^product/(.+)$index.php?section=details&product=$1
以“product”开头,您测试的url以“project”开头,您的htaccess在哪里?在哪个文件夹?@JuniusRendel这是我在项目中唯一可以访问的url我的基本url是localhost/project/shop/。。。我不知道我的重写库在我的htaccess文件中是否良好…:SMy htaccess位于/shop/folder@JustinIurman中
localhost/project/shop/product/myproduct