1

谷歌告诉我我有一些双主页标题标签。

例如:

https://www.mywebpage.nl 
https://www.mywebpage.nl/index.php?option=com_content&view=article&id=12&Itemid=219 

我使用 Joomla,我所有的网址都是 SEF 友好的,我为 https 和 www 安装了重定向。阿尔工作正常..

我的 htaccess 也有以下代码

RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical   folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]

当我输入:

https://www.mywebpage.nl/index.php?option=com_content&view=article&id=12&Itemid=219 

它重定向到

https://www.mywebpage.nl/?option=com_content&view=article&id=12&Itemid=219

如何在 htacces 中将此 URL 重定向到:

https://www.mywebpage.nl
4

0 回答 0