开发者

.htaccess query string with static page

开发者 https://www.devze.com 2022-12-28 18:58 出处:网络
So, unfortunately I\'m using vBulletin with Kohana and my integration is getting a bit complicated locking vBulletin out.Doing some rewrites, this in particular:

So, unfortunately I'm using vBulletin with Kohana and my integration is getting a bit complicated locking vBulletin out. Doing some rewrites, this in particular:

RewriteCond %{QUERY_STRING} ^do=(editprofile|editoptions)$
Rewri开发者_StackOverflowteRule ^forum/profile.php$ /user_profile/edit/ [R=301,L]

Comes back with /user_profile/edit/?do=editprofile

where I need /user_profile/edit/


Append a ? to clear the query string.

RewriteCond %{QUERY_STRING} ^do=(editprofile|editoptions)$
RewriteRule ^forum/profile.php$ /user_profile/edit/? [R=301,L]
0

精彩评论

暂无评论...
验证码 换一张
取 消