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

2016-05-29 Thread Always Learning
On Sun, 2016-05-29 at 17:33 +0100, Always Learning wrote: > RedirectMatch 301 ^(.*)$ http://new.domain.com/$1 should be:- RedirectMatch 301 ^/(.*)$ http://new.domain.com/$1 -- Regards, Paul. England, EU. England's place is in the European Union.

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

2016-05-29 Thread Always Learning
On Sat, 2016-05-28 at 13:03 -0600, Paul R. Ganci wrote: .. How about RewriteEngine on RewriteCond %{REQUEST_URI} !^/test/ [NC] RewriteCond %{REQUEST_URI} !^/my-folder/[NC] RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] or

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

2016-05-28 Thread Paul R. Ganci
On 05/28/2016 02:26 PM, Alexander Dalloz wrote: May I suggest you enable special logging for the mod_rewrite activity? https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel Yes this is a good idea. -- Paul (

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

2016-05-28 Thread Alexander Dalloz
Am 28.05.2016 um 22:08 schrieb Paul R. Ganci: 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 whitespa

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

2016-05-28 Thread Paul R. Ganci
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} a

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

2016-05-28 Thread Alexander Dalloz
Am 28.05.2016 um 21:03 schrieb Paul R. Ganci: I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running apache-2.2.15-53. I am trying to redirect all pages except for two pages. The apache rewrite directives in the httpd config are: RewriteEngine on

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

2016-05-28 Thread Walter H.
On 28.05.2016 21:03, Paul R. Ganci wrote: I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running apache-2.2.15-53. I am trying to redirect all pages except for two pages. The apache rewrite directives in the httpd config are: RewriteEngine on R

[CentOS] CentOS 6.8 Apache-2.2.15-53 re-write question

2016-05-28 Thread Paul R. Ganci
I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running apache-2.2.15-53. I am trying to redirect all pages except for two pages. The apache rewrite directives in the httpd config are: RewriteEngine on RewriteCond %{REQUEST_URI}!^/test/ RewriteCo