开发者

Rewrite rule for the following

开发者 https://www.devze.com 2022-12-21 12:46 出处:网络
I have news items on my website that get rewritten using the following rule: RewriteRule ^news/([^/]*)/([^/]*)$ /local/?page=home&news_id=$1&newsTitle=$2 [L]

I have news items on my website that get rewritten using the following rule:

RewriteRule ^news/([^/]*)/([^/]*)$ /local/?page=home&news_id=$1&newsTitle=$2 [L]

Now one of the news item’s title is:开发者_开发技巧 achieves_100%_A*_to_C_in_GCSE

But the page doesn't get displayed and I get a 400 error.

I think that the problem is with the % and the * in the address.

How do I include both % and * in a reg exp.

Thanks in Advance


A lone % is not valid in a URL. Replace it with %25 when entering it in the address bar.

0

精彩评论

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

关注公众号