Re: CentOS 6.8 Apache-2.2.15-53 re-write question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 05/28/2016 01:35 PM, Alexander Dalloz wrote:
Am 28.05.2016 um 21:03 schrieb Paul R. Ganci:
Starting httpd: Syntax error on line 31 of
/etc/httpd/conf.d/olddomain.conf:
RewriteCond: bad argument line '%{REQUEST_URI}!^/test/

You missed a whitespace between the server variable %{REUQEST_URI} and the value you test against. In both cases you did. And you probly want a trailing [OR] parameter. See

https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond
I did the suggested changes and indeed the syntax error goes away but the code does not work. The redirection takes place for all the pages even for those specified in the RewriteCond lines. My immediate syntax error problem is solved. It is funny how I stared at these lines for what seemed like eons and my mind fixed the immediate problem.

Thanks for your help, Alexander. I will take another look at what I did and see if I can't find what else is wrong.


--
Paul (ganci@xxxxxxxxxx)
Cell: (303)257-5208
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux