Forum Moderators: phranque
http://www.example.com/cgi-bin/lbitem-dba.cgi/C23-4170 http://www.example.com/tools/?search=1&keywords=C23-4170&product-list-search-commerce-products=Search Rewrite ^/cgi-bin/lbitem-dba\.cgi/C23-4170$ http://www.example.com/tools/?search=1&keywords=C23-4170&product-list-search-commerce-products=Search [R=301,L] http://www.example.com/tools/?search=1/cgi-bin/lbitem-dba.cgi/C23-4170keywords=C23-4170/cgi-bin/lbitem-dba.cgi/C23-4170product-list-search-commerce-products=Search there were a couple of lines possibly messing things up. I have cleaned those lines out, tested and site functions as it should.
Rewrite ^/cgi-bin/lbitem-dba\.cgi/C23-4170$ http://www.example.com/tools/?search=1&keywords=C23-4170&product-list-search-commerce-products=Search [R=301,L]
Although 'AllowOverride none' is not present am I getting warm (if I want the RewriteRule to function)?
RewriteRule widget http://example.com/foobar [R=301,L]
(using any two nonsense words that don't actually occur in URLs). Then request anything with "widget" in the URL, and see if you end up on your 404 page with the address bar saying "foobar" or whatever it is.
The RewriteRule created is above any of the other Redirect 301s.
I can get those Redirect 301s concerted to RewriteRule.
index.php/$1 [L]
RewriteRule %{REQUEST_URI} !^/cgi-bin/
(There are other ways to achive the same result. The point is to ensure that the CMS doesn't see requests that it wasn't supposed to handle.)