Hi guys, i m writing something like this RewriteCond ^Check(.*).html /publish/change.php?id=123&orderby=$1 [R] .. Now the problem is after i type mysite.com/Check01.html , it changes it to mysite.com/publish/change.php?id=123)"derby=01. So basically it is treating &order as something else and changing it to Ascii Value )". please help. Thanks, Chandan
RewriteRule ^Check(\d+)\.html$ /publish/change.php?id=123&orderby=$1 Code (markup): ... give this a try. Did you upload the file as Binary or ASCII?
didn't work either... my problem is anywhere if it is &or then it will convert it into )"....... if i use &oderby (removed r) then i works fine... hope i am able to explain it properly.... so is it like, we can;t use &or together...???? i know this can be done alternately also like moving orderby to previous, then &or will not be together like /publish/change.php?orderby=$1&id=123 [L], but this is not a solution... please help
The following code is tested and works: assuming you don't want people knowing where the code is being run, you shouldn't finish the rule with [R]. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule check(.*)\.html publish/change.php/?id=123&orderby=$1 </IfModule> Code (markup):