【发布时间】:2013-12-16 15:53:44
【问题描述】:
我有这个链接: http://joa.upcreation.com/nos-restaurants/cesar-palace/?plan=1
我想要这个: http://joa.upcreation.com/nos-restaurants/cesar-palace/plan
我试过了,但是不行……
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule (.*) $1? [R=301,L] #remove query string
这里是我的 .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} .+
RewriteRule ^(.*)$ /$1/plan? [NE,R=301,L]
RewriteBase /
AddType x-mapp-php5 .php
SetEnv PHP_VER 5
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
谁能帮帮我?
提前致谢
【问题讨论】: