我需要使用htaccess的让所有的网页?网页劝到301永久重定向= 9的index.phphtaccess的重定向重定向的URL都与网页的index.php
可以如何实现期望的
导人例如-1
http://www.example.com/?page=9&option=com_news&view=list&Itemid=100&limitstart=840
到
http://www.example.com/index.php&option=com_news&view=list&Itemid=100&limitstart=840
或者说,例如2
http://www.example.com/?page=17&option=com_news&view=list&Itemid=100
到
编辑 使用
RewriteEngine on
RewriteCond %{THE_REQUEST} \?page=.+&(.+)\sHTTP [NC]
RewriteRule^/index.php&%1? [L,R=301]
但力曾作为输出
http://www.example.com/index.php&limitstart=840
你只是想删除页面? –
yes删除?页面并添加index.php – Ruchika
'index.php'是隐式的(假设你的DirectoryIndex是为它设置的) - 在'/?something = something'和'/ index之间没有实际区别。 PHP的东西=东西' – CD001