, as it is the base for our CMS. However, the other line, "redirect-to" does not work. If I take out the first line, needed by the CMS, it works, if I add it together with the other, it fails... 500 errors.
I think it has to do because the first is a site-wide rewrite, and redirect-to is more specific. How can I get these to work together?
Apache Web ServerSearch Engine Optimization (SEO)
Last Comment
Bernard Savonet
8/22/2022 - Mon
kaufmed
Have you tried putting that rule before the other?
Doesn't that only matter if more rules follow the rule in question?
Bernard Savonet
No it does not matter if more rules follow in your script.
But it does matter if they are used or not after a previous rewrite.
The [L] says "do not go further in this file"... which in the last example I gave would go to the "new url"... which would then pass again thru the htaccess file.
So the "new url" will now go against all the rewrite rulen beginning at the top of the file.
Open in new window