tags:

views:

21

answers:

1

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

+1  A: 

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

Ignacio Vazquez-Abrams
Thanks that worked fine.
Abdul Latif