Forum Moderators: bakedjake
RewriteEngine on
RewriteRule ^(.*)$ ../cgi-bin/shop.cgi?url=$1
And the redirect works fine link this:
ErrorDocument 404 [mydomain...]
BUT, I can't seem to combine the 2 functions. What I want to do is perform
the ReWrite ONLY when the page cannot be found. Something like this:
RewriteEngine on
RewriteRule ErrorDocument 404 ../cgi-bin/shop.cgi?url=$1
(obviously, this doesn't work)
The reason being, I want to put this .htaccess in my root htdocs folder, but
want users to still be able to access the .html files that are there.
Please help!
This thread [webmasterworld.com] demonstrates how to redirect missing image files. You can generalize it to accomplish what you need to do.
Jim