RewriteRule view-page.php?id=145 http://www.mysite.com/index.php/newpath/item/$new_numberR=301,L
Unfortunately this is throwing a 404 error. It is balking at the question mark and what follows. I verified this by testing some simple lines without the question mark such as:
RewriteRule view-page.php http://www.mysite.com/index.php/newpath/item/$new_number [R=301,L]
which works but is useless without the ?id=$number
Just guessing I tried things like a backslash in front of the question mark ( \> ), added a slash and even full path at the very beginning:
RewriteRule /view-page.php\?id=145 http://www.mysite.com/index.php/newpath/item/$new_numberR=301,L] RewriteRule /view-page.php?id=145 http://www.mysite.com/index.php/newpath/item/$new_numberR=301,L] RewriteRule http://www.mysite.com/view-page.php?id=145 http://www.mysite.com/index.php/newpath/item/$new_numberR=301,L]
Where to next?









