网站的Url是http://www.xxx.com/index.php?category-view-1160.html
http://www.xxx.com/index.php?list-letter-Z.html
http://www.xxx.com/index.php?/doc-view-19792.html 现在想 httpd.ini 301重定向成:
http://www.xxx.com/category-view-1160.html
http://www.xxx.com/list-letter-Z.html
http://www.xxx.com/doc-view-19792.html 把"index.php?"给删除了现在在 httpd.ini 里面要怎么写
http://www.xxx.com/index.php?list-letter-Z.html
http://www.xxx.com/index.php?/doc-view-19792.html 现在想 httpd.ini 301重定向成:
http://www.xxx.com/category-view-1160.html
http://www.xxx.com/list-letter-Z.html
http://www.xxx.com/doc-view-19792.html 把"index.php?"给删除了现在在 httpd.ini 里面要怎么写
RewriteEngine on
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ /index.php/$1 [L]