Re: [users@httpd] Re: Need help understanding mod_rewrite and redirect

2023-05-03 Thread Frank Gingras
In a non-directory context, just anchor your target, and you can skip the RewriteBase altogether. Redirect requires two parameters in the vhost/server context. On Wed, May 3, 2023 at 6:57 PM Jim Weill wrote: > On Wed, May 3, 2023 at 3:45 PM Frank Gingras wrote: > >> 1) Avoid rewriting from

Re: [users@httpd] Re: Need help understanding mod_rewrite and redirect

2023-05-03 Thread Jim Weill
On Wed, May 3, 2023 at 3:45 PM Frank Gingras wrote: > 1) Avoid rewriting from or blocks. > RewriteBase says it cannot be called outside , is that not the case...? > 2) Avoid using mod_alias (redirect) from that context as well > I tried putting the redirect outside the and it would not

Re: [users@httpd] Re: Need help understanding mod_rewrite and redirect

2023-05-03 Thread Frank Gingras
1) Avoid rewriting from or blocks. 2) Avoid using mod_alias (redirect) from that context as well 3) Provide more than one rewrite log line, context matters 4) This can be replaced with FallbackResource /index.php: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d