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.
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
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 (
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
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
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
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
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
8 matches
Mail list logo