I get 404 errs with tangling urls such as www.mysite.com/XYZ_404err_variety
, I want to redirect everything like that to www.mysite.com/
, how? I am using *ix -server on apahce. I tried this one but it messed up my configurations for some reason:
RewriteEngine On
RewriteBase /
redirect 404 ^(.*)$ www\.mysite\.com$1 [R]
and this one:
RewriteEngine On
RewriteBase /
redirect 404 ^(www\.mysite\.com*)$ www\.mysite\.com$1 [R]