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

2016-03-30 Thread Christian Hettler
t; Thank you! > > > -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

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

2016-03-29 Thread Alexandru Duzsardi
lili [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

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 &

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

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

2016-03-25 Thread Alexandru Duzsardi
: 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} ^$ R

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} ^$ Re

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

2016-03-25 Thread Alexandru Duzsardi
Hello, I've search around on search engines but I could not find any answers that solve my dilemma I have a VirtualHost configured to respond on multiple hostnames Example: hostname.com , lang-fr.hostname.com , lang-nl.hostname.com , fr-lang.hostname.com , nl-lang.hostname.com Now , what I wou