Hi all. I have been successfule in setting up mod_rewrite the way I needed too, but now I'm trying to use 'redirect' and mod_rewrite in the same directory. There are two requests that I need to do special redirects on, so I'm not handling them with the 'all-in-one' rewrite. Maybe it's best I show you...
------ .htaccess ------
redirect 301 /shoppingcart/customer/pages.php?pageid=62 http://www.kegworks.com/home.php?cat=663
redirect 301 /shoppingcart/customer/pages.php?pageid=63
http://www.kegworks.com/company.php?pageid=34
RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} /shoppingcart/customer/ [NC]
RewriteRule ^(.*)$ /$1 [QSA,R=301]
------ .htaccess ------
It does what I need it to do for all the other pages, but it just seems to ignore the two redirect commands, and shows this in the log file...
129.44.255.58
- - [25/May/2006:14:13:32 -0400] GET /shoppingcart/customer/pages.php?pageid=663 HTTP/1.1 301 331 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
129.44.255.58 - - [25/May/2006:14:13:33 -0400] GET /pages.php?pageid=62 HTTP/1.1 302 5 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
I have hit the brick wall.
- [EMAIL PROTECTED] Using mod_rewrite with redirect Bob Smith