I have created a .htaccess file at the following location:
I need calls to the pages: category.asp, parentCategory.asp, and product_detail.asp to be redirected to the same file name with .php as extension instead. All other requests should be sent to http://shop.specialopspaintball.com/
Q1: As my code is now, the first three rules seem to be ignored, and the fourth one always executes. How can I make the first three take precedence?
Q2: When the fourth rewrite happens, it appends the query string to the redirect. How can I remove that?
Example link: http://specialopspaintball.com/shop/imageviewer.asp?SKU=611+0002&IMAGE=b
Results in: http://shop.specialopspaintball.com/?SKU=611+0002&IMAGE=b
RewriteRule ^category.asp /shop/category.php [NC]
RewriteRule ^parentCategory.asp /shop/parentCategory.php [NC]
RewriteRule ^product_detail.asp /shop/product_detail.php [NC]
RewriteRule ^(.*)$ http://shop.specialopspaintball.com/ [L,R=301]