Re: Apache and RewriteRule

2019-03-10 Thread Alex
Hi, On Fri, Mar 8, 2019 at 1:57 PM Bill Shirley wrote: > I turn this on when I'm debugging Rewrite rules: > # Apache 2.4 - rewrite debug - trace0:trace8 >RewriteLog /var/log/httpd/rewrite.log >LogLevelrewrite:trace4 Thanks for that. I've been using rewrite:trace3, a

Re: Apache and RewriteRule

2019-03-08 Thread Bill Shirley
I turn this on when I'm debugging Rewrite rules: # Apache 2.4 - rewrite debug - trace0:trace8    RewriteLog  /var/log/httpd/rewrite.log    LogLevel    rewrite:trace4 Bill On 3/1/2019 10:08 PM, Todd Zullinger wrote: Hi, Alex wrote: I believe you want to use something like:

Re: Apache and RewriteRule

2019-03-03 Thread Alex
Hi, I've also noticed the following in the .htaccess file in the document root as part of joomla: # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php # and the requested pat

Re: Apache and RewriteRule

2019-03-03 Thread Alex
Hi, > >>> RewriteCond %{QUERY_STRING} ^option=login$ > >>> RewriteRule ^/index.php?$ /register [R=301,L] > >>> > >>> It's been a while since I've done this, so I'm not sure > >>> whether the "?" after index.php is matched. You may need to > >>> adjust that pattern. > >> > >> I wou

Re: Apache and RewriteRule

2019-03-01 Thread Todd Zullinger
Hi, Alex wrote: >>> I believe you want to use something like: >>> >>> RewriteCond %{QUERY_STRING} ^option=login$ >>> RewriteRule ^/index.php?$ /register [R=301,L] >>> >>> It's been a while since I've done this, so I'm not sure >>> whether the "?" after index.php is matched. You ma

Re: Apache and RewriteRule

2019-03-01 Thread Alex
Hi, > >> RewriteRule ^/index.php\?option=login$ /register [R=301,L] > > > >I think you may be caught by RewriteRule not matching > >against query strings. Per the docs: > > > >What is matched? > >... > >* If you wish to match against the hostname, port, > >

Re: Apache and RewriteRule

2019-03-01 Thread Cameron Simpson
On 01Mar2019 12:51, todd zullinger wrote: Alex wrote: I've already asked this question on a number of apache forums and have received no response. I hoped someone here could help me understand why this rewriterule doesn't work: RewriteRule ^/index.php\?option=login$ /register [R=3

Re: Apache and RewriteRule

2019-03-01 Thread Todd Zullinger
Hi, Alex wrote: > I've already asked this question on a number of apache forums and have > received no response. I hoped someone here could help me understand > why this rewriterule doesn't work: > > RewriteRule ^/index.php\?option=login$ /register [R=301,L] I think you may be caugh

Apache and RewriteRule

2019-03-01 Thread Alex
Hi all, I've already asked this question on a number of apache forums and have received no response. I hoped someone here could help me understand why this rewriterule doesn't work: RewriteRule ^/index.php\?option=login$ /register [R=301,L] This is on a joomla-3.9 system running on