Re: [users@httpd] Trubble with rewrite rules

2016-12-16 Thread Thomas Schweikle
On 16.12.2016 16:46, Eric Covener wrote: > On Fri, Dec 16, 2016 at 10:26 AM, Thomas Schweikle > wrote: >>RewriteRule ^/xyz/(.*) "/abc/$1" [R,L] > > > When this rule was first -- If it's in htaccess, the ^/ will not > match. Your other rule accounts for this by making the leading slash > optio

Re: [users@httpd] Trubble with rewrite rules

2016-12-16 Thread Eric Covener
On Fri, Dec 16, 2016 at 10:26 AM, Thomas Schweikle wrote: >RewriteRule ^/xyz/(.*) "/abc/$1" [R,L] When this rule was first -- If it's in htaccess, the ^/ will not match. Your other rule accounts for this by making the leading slash optional. -- Eric Covener cove...@gmail.com ---

[users@httpd] Trubble with rewrite rules

2016-12-16 Thread Thomas Schweikle
Hi! I am redirecting all connections to https: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] That is working so far. Now an other thing to do I've moved some content to an other place and I want users accessing the old place to be redir