Subdomains redirect with parameters
4 posts
• Page 1 of 1
Subdomains redirect with parameters
Hi,
I need a site working in this mode:
it-it.mydomain.com (it for country, it for language)
it-en.mydomain.com (it for country, en for language)
it-es.mydomain.com (it for country, es for language)
en-it.mydomain.com (en for country, it for language)
en-en.mydomain.com (en for country, en for language)
en-es.mydomain.com (en for country, es for language)
etc etc
the code is all in http://www.mydomain.com
is possible to redirect it-en.mydomain.com to --> http://www.mydomain.com?country=it&language=en ?
the url should remain it-en.mydomain.com
Thank you![Smile :)](./images/smilies/icon_e_smile.gif)
Ghiro
I need a site working in this mode:
it-it.mydomain.com (it for country, it for language)
it-en.mydomain.com (it for country, en for language)
it-es.mydomain.com (it for country, es for language)
en-it.mydomain.com (en for country, it for language)
en-en.mydomain.com (en for country, en for language)
en-es.mydomain.com (en for country, es for language)
etc etc
the code is all in http://www.mydomain.com
is possible to redirect it-en.mydomain.com to --> http://www.mydomain.com?country=it&language=en ?
the url should remain it-en.mydomain.com
Thank you
![Smile :)](./images/smilies/icon_e_smile.gif)
Ghiro
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Subdomains redirect with parameters
Ghiro,
What rules have you tried to use?
Regards
What rules have you tried to use?
Regards
Re: Subdomains redirect with parameters
Hi,
the problem is that I don't know how to configure rewrite with subdomains.
Usually I only use rewrite to load pages with querystring parameters.
Ghiro
the problem is that I don't know how to configure rewrite with subdomains.
Usually I only use rewrite to load pages with querystring parameters.
Ghiro
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Subdomains redirect with parameters
It's very close, you can refer to FAQ (http://www.helicontech.com/forum/10648-FAQ.html) and Examples Section (http://www.helicontech.com/isapi_rewrit ... amples.htm).
Instead of using regexp in
Regards
Instead of using regexp in
- Code: Select all
RewriteCond %{QUERY_STRING}
- Code: Select all
RewriteCOnd %{HTTP:Host}
Regards
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests