Re: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-30 Thread Christian Hettler
ou! > > > -Original Message- > From: Christian Hettler [mailto:christian.hett...@asknet.de] > Sent: Tuesday, March 29, 2016 12:08 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Rewrite domain to language specific page but no > address bar redirecti

RE: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-29 Thread Alexandru Duzsardi
to:m...@rqc.ru] > Sent: Friday, March 25, 2016 2:31 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Rewrite domain to language specific page > but no address bar redirection > > It's tricky. Here's a rule set that works for me (but it may depend on Apache > version and con

Re: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-29 Thread Christian Hettler
li [mailto:m...@rqc.ru] > Sent: Friday, March 25, 2016 2:31 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Rewrite domain to language specific page but no > address bar redirection > > It's tricky. Here's a rule set that works for me (but it may depend on Apache > versio

RE: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-25 Thread Alexandru Duzsardi
/*(.*)$ /fr/$2 [L] From: Marat Khalili [mailto:m...@rqc.ru] Sent: Friday, March 25, 2016 2:31 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Rewrite domain to language specific page but no address bar redirection It's tricky. Here's a rule set that works for me (but it may depend

RE: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-25 Thread Alexandru Duzsardi
To: users@httpd.apache.org Subject: Re: [users@httpd] Rewrite domain to language specific page but no address bar redirection It's tricky. Here's a rule set that works for me (but it may depend on Apache version and configuration): # fr-lang { RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond

Re: [users@httpd] Rewrite domain to language specific page but no address bar redirection

2016-03-25 Thread Marat Khalili
It's tricky. Here's a rule set that works for me (but it may depend on Apache version and configuration): # fr-lang { RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{REQUEST_URI} ^/fr$ RewriteRule ^fr$ http://lang-fr.hostname.com/ [L,R=302] RewriteCond %{ENV:REDIRECT_STATUS} ^$