Include special characters on Back references to RewriteRule
2 posts
• Page 1 of 1
- rustichman
- Posts: 2
- Joined: 20 Mar 2014, 12:22
Include special characters on Back references to RewriteRule
Hi to all!
I've a problem with special characters in the value of the fields.
I've this rule:
Seorule Article\.asp\?Art=(.+) Article-$1/
ReWriteRule Article-(.+)/ TEST/Article.asp?Art=$1
If the value is a string without any special characters (such as $,%,&, # ecc) it's all good, but if
i've the field like this
...\?Art=wizard+of+oz
the browser return 404 error.
I've tried to insert
([^\s"'$&]*)
instead of
(.+)
but nothing change.
Where I fault?
I've a problem with special characters in the value of the fields.
I've this rule:
Seorule Article\.asp\?Art=(.+) Article-$1/
ReWriteRule Article-(.+)/ TEST/Article.asp?Art=$1
If the value is a string without any special characters (such as $,%,&, # ecc) it's all good, but if
i've the field like this
...\?Art=wizard+of+oz
the browser return 404 error.
I've tried to insert
([^\s"'$&]*)
instead of
(.+)
but nothing change.
Where I fault?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Include special characters on Back references to Rewrite
Hello,
This is not special character. The problem is that you're matching quesrystring wrong. Look at under "URLs with question mark don't work" in our FAQ http://www.helicontech.com/forum/10648-FAQ.html
Regards
This is not special character. The problem is that you're matching quesrystring wrong. Look at under "URLs with question mark don't work" in our FAQ http://www.helicontech.com/forum/10648-FAQ.html
Regards
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests