如何从Code igniter中删除我的URL中的问号

时间:2018-04-29 13:44:45

标签: php codeigniter url

我们的平台基于CodeIgniter平台

我可以使用.htaccess rule删除我的网址链接中的index.php但是以下类型的问号开始出现在我的许多网址链接上。

示例网址链接:

www.example.com/**?**/category/subcategory/product/

它仅显示在Google网站管理员结果或其他SEO抓取工具中。因此,它不会显示客户何时点击网站。

1 个答案:

答案 0 :(得分:0)

您需要在 httpd-vhosts.conf 中添加AllowOverride

<Directory "C:\Site\Root\Path">
  AllowOverride All
  Order Deny,Allow  
  Allow from all
</Directory>