例如:
https://www.mywebpage.nl
https://www.mywebpage.nl/index.php?option=com_content&view=article&id=12&Itemid=219
我使用Joomla,我的所有网址都是SEF友好的 我为https和www安装了重定向。 Al工作得很好..
我的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