Re: RewriteCond and negative matching

Dave Wreski <[email protected]> Mon, 14 Apr 2025 11:32:16 -0400
Newsgroups gmane.comp.apache.user
Organization Guardian Digital, Inc.
Message-ID <[email protected]>
Hi,

>     We're getting a ton of 404s for URLs for paths that don't exist,
>     like /apps and other nonsense off the root that never existed that
>     I'd like to redirect to the homepage.
>
...

> If the "home page" is an index file in the documentroot, a simple 
> FallbackResource will suffice, and you don't need to use mod_rewrite 
> at all.

I believe that only works for physical files, like /images/myimage.gif, 
and not for virtual paths set up by Joomla, like /news/myarticle.html, 
correct?

I tried just adding it in the VirtualHost, but would like it to work for 
specific paths, not for any link that doesn't exist on the entire site.

Thanks,
Dave