Making different home URL

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Making different home URL

pushpendu mondal
Hi,

Guys, I came across a problem and I require some help.
The problem is that I want to have different Home_Url with respect to IP or
the location where anyone belong.

for example:
 If I stays in United States, I want to have my Home_Url like*
https://www.example.com/ <https://www.example.com/>* so when  anyone tries
to open my site he should be redirected to above link.

If I stay in Germany , I want to have my Home_Url like*
https://www.example.com/de <https://www.example.com/de>* so when anyone
tries to open my site he should be redirected to this link.

How can I achieve this, Is there any way or any plugin?

Thanks

--
*Pushpendu Mondal* (Senior WordPress Developer)
*T :* +91 33 66155181
*M :* +91 9614648464 *Netherlands: Delgence B.V*
Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
*E :* [hidden email] <[hidden email]>
*INDIA*
Rishi Tech Park New Town,
Rajarhat ,WB,
Kol.700156. *USA: Delgence LLC*
675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
USA
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Joel Mandell
I think you can use

<link rel="alternate" type="text/html" hreflang="de" href="/de/" />

And do that for every language.
Think it should be sufficient.
Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
[hidden email]>:

> Hi,
>
> Guys, I came across a problem and I require some help.
> The problem is that I want to have different Home_Url with respect to IP or
> the location where anyone belong.
>
> for example:
>  If I stays in United States, I want to have my Home_Url like*
> https://www.example.com/ <https://www.example.com/>* so when  anyone tries
> to open my site he should be redirected to above link.
>
> If I stay in Germany , I want to have my Home_Url like*
> https://www.example.com/de <https://www.example.com/de>* so when anyone
> tries to open my site he should be redirected to this link.
>
> How can I achieve this, Is there any way or any plugin?
>
> Thanks
>
> --
> *Pushpendu Mondal* (Senior WordPress Developer)
> *T :* +91 33 66155181
> *M :* +91 9614648464 *Netherlands: Delgence B.V*
> Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> *E :* [hidden email] <[hidden email]>
> *INDIA*
> Rishi Tech Park New Town,
> Rajarhat ,WB,
> Kol.700156. *USA: Delgence LLC*
> 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> USA
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Frank Bueltge
If you have also different content, language for each key "de" etc. then
think about a solution via WP Multisite, each site for each language key.
You can also create relationship between objects, like post, page,
taxonomy, then can help the plugin MultilingualPress or custom source.

Best.

Liebe Grüße
Frank
Ⓦ WordPress solution architect
__
http://bueltge.de
http://inpsyde.com
http://multilingualpress.pro
http://marketpress.com

Privat: +49 36428 169305 | Mobil: +49 170 5322053

Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln

On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]> wrote:

> I think you can use
>
> <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
>
> And do that for every language.
> Think it should be sufficient.
> Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> [hidden email]>:
>
> > Hi,
> >
> > Guys, I came across a problem and I require some help.
> > The problem is that I want to have different Home_Url with respect to IP
> or
> > the location where anyone belong.
> >
> > for example:
> >  If I stays in United States, I want to have my Home_Url like*
> > https://www.example.com/ <https://www.example.com/>* so when  anyone
> tries
> > to open my site he should be redirected to above link.
> >
> > If I stay in Germany , I want to have my Home_Url like*
> > https://www.example.com/de <https://www.example.com/de>* so when anyone
> > tries to open my site he should be redirected to this link.
> >
> > How can I achieve this, Is there any way or any plugin?
> >
> > Thanks
> >
> > --
> > *Pushpendu Mondal* (Senior WordPress Developer)
> > *T :* +91 33 66155181
> > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> > *E :* [hidden email] <[hidden email]>
> > *INDIA*
> > Rishi Tech Park New Town,
> > Rajarhat ,WB,
> > Kol.700156. *USA: Delgence LLC*
> > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > USA
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

pushpendu mondal
Hi,

But how can I detect the IP from where anyone is viewing, I mean how can I
change my home url dynamically with respect to country.

Thanks

On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]> wrote:

> If you have also different content, language for each key "de" etc. then
> think about a solution via WP Multisite, each site for each language key.
> You can also create relationship between objects, like post, page,
> taxonomy, then can help the plugin MultilingualPress or custom source.
>
> Best.
>
> Liebe Grüße
> Frank
> Ⓦ WordPress solution architect
> __
> http://bueltge.de
> http://inpsyde.com
> http://multilingualpress.pro
> http://marketpress.com
>
> Privat: +49 36428 169305 | Mobil: +49 170 5322053
>
> Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
> Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
>
> On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]>
> wrote:
>
> > I think you can use
> >
> > <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
> >
> > And do that for every language.
> > Think it should be sufficient.
> > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > [hidden email]>:
> >
> > > Hi,
> > >
> > > Guys, I came across a problem and I require some help.
> > > The problem is that I want to have different Home_Url with respect to
> IP
> > or
> > > the location where anyone belong.
> > >
> > > for example:
> > >  If I stays in United States, I want to have my Home_Url like*
> > > https://www.example.com/ <https://www.example.com/>* so when  anyone
> > tries
> > > to open my site he should be redirected to above link.
> > >
> > > If I stay in Germany , I want to have my Home_Url like*
> > > https://www.example.com/de <https://www.example.com/de>* so when
> anyone
> > > tries to open my site he should be redirected to this link.
> > >
> > > How can I achieve this, Is there any way or any plugin?
> > >
> > > Thanks
> > >
> > > --
> > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > *T :* +91 33 66155181
> > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> www.delgence.com
> > > *E :* [hidden email] <[hidden email]>
> > > *INDIA*
> > > Rishi Tech Park New Town,
> > > Rajarhat ,WB,
> > > Kol.700156. *USA: Delgence LLC*
> > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > USA
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
*Pushpendu Mondal* (Senior WordPress Developer)
*T :* +91 33 66155181
*M :* +91 9614648464 *Netherlands: Delgence B.V*
Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
*E :* [hidden email] <[hidden email]>
*INDIA*
Rishi Tech Park New Town,
Rajarhat ,WB,
Kol.700156. *USA: Delgence LLC*
675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
USA
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Joel Mandell
You can use https://freegeoip.net/ to get the country according to it's ip
and use wp_redirect.

2016-03-16 13:35 GMT+01:00 pushpendu mondal <[hidden email]>:

> Hi,
>
> But how can I detect the IP from where anyone is viewing, I mean how can I
> change my home url dynamically with respect to country.
>
> Thanks
>
> On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]> wrote:
>
> > If you have also different content, language for each key "de" etc. then
> > think about a solution via WP Multisite, each site for each language key.
> > You can also create relationship between objects, like post, page,
> > taxonomy, then can help the plugin MultilingualPress or custom source.
> >
> > Best.
> >
> > Liebe Grüße
> > Frank
> > Ⓦ WordPress solution architect
> > __
> > http://bueltge.de
> > http://inpsyde.com
> > http://multilingualpress.pro
> > http://marketpress.com
> >
> > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> >
> > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> Gladbach
> > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht
> Köln
> >
> > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]>
> > wrote:
> >
> > > I think you can use
> > >
> > > <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
> > >
> > > And do that for every language.
> > > Think it should be sufficient.
> > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > [hidden email]>:
> > >
> > > > Hi,
> > > >
> > > > Guys, I came across a problem and I require some help.
> > > > The problem is that I want to have different Home_Url with respect to
> > IP
> > > or
> > > > the location where anyone belong.
> > > >
> > > > for example:
> > > >  If I stays in United States, I want to have my Home_Url like*
> > > > https://www.example.com/ <https://www.example.com/>* so when  anyone
> > > tries
> > > > to open my site he should be redirected to above link.
> > > >
> > > > If I stay in Germany , I want to have my Home_Url like*
> > > > https://www.example.com/de <https://www.example.com/de>* so when
> > anyone
> > > > tries to open my site he should be redirected to this link.
> > > >
> > > > How can I achieve this, Is there any way or any plugin?
> > > >
> > > > Thanks
> > > >
> > > > --
> > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > *T :* +91 33 66155181
> > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > www.delgence.com
> > > > *E :* [hidden email] <[hidden email]>
> > > > *INDIA*
> > > > Rishi Tech Park New Town,
> > > > Rajarhat ,WB,
> > > > Kol.700156. *USA: Delgence LLC*
> > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > USA
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> *Pushpendu Mondal* (Senior WordPress Developer)
> *T :* +91 33 66155181
> *M :* +91 9614648464 *Netherlands: Delgence B.V*
> Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> *E :* [hidden email] <[hidden email]>
> *INDIA*
> Rishi Tech Park New Town,
> Rajarhat ,WB,
> Kol.700156. *USA: Delgence LLC*
> 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> USA
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
*Telefon:*
070-8950293
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

pushpendu mondal
Yes, We can use wp_redirect for pages but how change the home url(), Will
it work on wp-redirect work on wp-config page or can this be done using
HTACCESS?



On Wed, Mar 16, 2016 at 6:18 PM, Joel Mandell <[hidden email]> wrote:

> You can use https://freegeoip.net/ to get the country according to it's ip
> and use wp_redirect.
>
> 2016-03-16 13:35 GMT+01:00 pushpendu mondal <[hidden email]
> >:
>
> > Hi,
> >
> > But how can I detect the IP from where anyone is viewing, I mean how can
> I
> > change my home url dynamically with respect to country.
> >
> > Thanks
> >
> > On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]> wrote:
> >
> > > If you have also different content, language for each key "de" etc.
> then
> > > think about a solution via WP Multisite, each site for each language
> key.
> > > You can also create relationship between objects, like post, page,
> > > taxonomy, then can help the plugin MultilingualPress or custom source.
> > >
> > > Best.
> > >
> > > Liebe Grüße
> > > Frank
> > > Ⓦ WordPress solution architect
> > > __
> > > http://bueltge.de
> > > http://inpsyde.com
> > > http://multilingualpress.pro
> > > http://marketpress.com
> > >
> > > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> > >
> > > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> > Gladbach
> > > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht
> > Köln
> > >
> > > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]>
> > > wrote:
> > >
> > > > I think you can use
> > > >
> > > > <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
> > > >
> > > > And do that for every language.
> > > > Think it should be sufficient.
> > > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > > [hidden email]>:
> > > >
> > > > > Hi,
> > > > >
> > > > > Guys, I came across a problem and I require some help.
> > > > > The problem is that I want to have different Home_Url with respect
> to
> > > IP
> > > > or
> > > > > the location where anyone belong.
> > > > >
> > > > > for example:
> > > > >  If I stays in United States, I want to have my Home_Url like*
> > > > > https://www.example.com/ <https://www.example.com/>* so when
> anyone
> > > > tries
> > > > > to open my site he should be redirected to above link.
> > > > >
> > > > > If I stay in Germany , I want to have my Home_Url like*
> > > > > https://www.example.com/de <https://www.example.com/de>* so when
> > > anyone
> > > > > tries to open my site he should be redirected to this link.
> > > > >
> > > > > How can I achieve this, Is there any way or any plugin?
> > > > >
> > > > > Thanks
> > > > >
> > > > > --
> > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > *T :* +91 33 66155181
> > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > www.delgence.com
> > > > > *E :* [hidden email] <
> [hidden email]>
> > > > > *INDIA*
> > > > > Rishi Tech Park New Town,
> > > > > Rajarhat ,WB,
> > > > > Kol.700156. *USA: Delgence LLC*
> > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > USA
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > [hidden email]
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > *Pushpendu Mondal* (Senior WordPress Developer)
> > *T :* +91 33 66155181
> > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> > *E :* [hidden email] <[hidden email]>
> > *INDIA*
> > Rishi Tech Park New Town,
> > Rajarhat ,WB,
> > Kol.700156. *USA: Delgence LLC*
> > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > USA
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> *Telefon:*
> 070-8950293
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
*Pushpendu Mondal* (Senior WordPress Developer)
*T :* +91 33 66155181
*M :* +91 9614648464 *Netherlands: Delgence B.V*
Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
*E :* [hidden email] <[hidden email]>
*INDIA*
Rishi Tech Park New Town,
Rajarhat ,WB,
Kol.700156. *USA: Delgence LLC*
675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
USA
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Frank Bueltge
If you need a rewrite in dependence to the IP, then use a library and
custom source.
But maybe it is the right way, that you rewrite to the right language from
the the language of the browser, user settings.
The last way is include the plugin, that I mentioned - MultilingualPress.
(more infos: http://multilingualpress.pro/)

Liebe Grüße
Frank
Ⓦ WordPress solution architect
__
http://bueltge.de
http://inpsyde.com
http://multilingualpress.pro
http://marketpress.com

Privat: +49 36428 169305 | Mobil: +49 170 5322053

Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln

On Wed, Mar 16, 2016 at 1:58 PM, pushpendu mondal <
[hidden email]> wrote:

> Yes, We can use wp_redirect for pages but how change the home url(), Will
> it work on wp-redirect work on wp-config page or can this be done using
> HTACCESS?
>
>
>
> On Wed, Mar 16, 2016 at 6:18 PM, Joel Mandell <[hidden email]>
> wrote:
>
> > You can use https://freegeoip.net/ to get the country according to it's
> ip
> > and use wp_redirect.
> >
> > 2016-03-16 13:35 GMT+01:00 pushpendu mondal <
> [hidden email]
> > >:
> >
> > > Hi,
> > >
> > > But how can I detect the IP from where anyone is viewing, I mean how
> can
> > I
> > > change my home url dynamically with respect to country.
> > >
> > > Thanks
> > >
> > > On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]>
> wrote:
> > >
> > > > If you have also different content, language for each key "de" etc.
> > then
> > > > think about a solution via WP Multisite, each site for each language
> > key.
> > > > You can also create relationship between objects, like post, page,
> > > > taxonomy, then can help the plugin MultilingualPress or custom
> source.
> > > >
> > > > Best.
> > > >
> > > > Liebe Grüße
> > > > Frank
> > > > Ⓦ WordPress solution architect
> > > > __
> > > > http://bueltge.de
> > > > http://inpsyde.com
> > > > http://multilingualpress.pro
> > > > http://marketpress.com
> > > >
> > > > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> > > >
> > > > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> > > Gladbach
> > > > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > > > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht
> > > Köln
> > > >
> > > > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]
> >
> > > > wrote:
> > > >
> > > > > I think you can use
> > > > >
> > > > > <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
> > > > >
> > > > > And do that for every language.
> > > > > Think it should be sufficient.
> > > > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > > > [hidden email]>:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Guys, I came across a problem and I require some help.
> > > > > > The problem is that I want to have different Home_Url with
> respect
> > to
> > > > IP
> > > > > or
> > > > > > the location where anyone belong.
> > > > > >
> > > > > > for example:
> > > > > >  If I stays in United States, I want to have my Home_Url like*
> > > > > > https://www.example.com/ <https://www.example.com/>* so when
> > anyone
> > > > > tries
> > > > > > to open my site he should be redirected to above link.
> > > > > >
> > > > > > If I stay in Germany , I want to have my Home_Url like*
> > > > > > https://www.example.com/de <https://www.example.com/de>* so when
> > > > anyone
> > > > > > tries to open my site he should be redirected to this link.
> > > > > >
> > > > > > How can I achieve this, Is there any way or any plugin?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > --
> > > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > > *T :* +91 33 66155181
> > > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > > www.delgence.com
> > > > > > *E :* [hidden email] <
> > [hidden email]>
> > > > > > *INDIA*
> > > > > > Rishi Tech Park New Town,
> > > > > > Rajarhat ,WB,
> > > > > > Kol.700156. *USA: Delgence LLC*
> > > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > > USA
> > > > > > _______________________________________________
> > > > > > wp-hackers mailing list
> > > > > > [hidden email]
> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > >
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > [hidden email]
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > >
> > >
> > >
> > > --
> > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > *T :* +91 33 66155181
> > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> www.delgence.com
> > > *E :* [hidden email] <[hidden email]>
> > > *INDIA*
> > > Rishi Tech Park New Town,
> > > Rajarhat ,WB,
> > > Kol.700156. *USA: Delgence LLC*
> > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > USA
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > *Telefon:*
> > 070-8950293
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> *Pushpendu Mondal* (Senior WordPress Developer)
> *T :* +91 33 66155181
> *M :* +91 9614648464 *Netherlands: Delgence B.V*
> Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> *E :* [hidden email] <[hidden email]>
> *INDIA*
> Rishi Tech Park New Town,
> Rajarhat ,WB,
> Kol.700156. *USA: Delgence LLC*
> 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> USA
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Joel Mandell
Probably works with htaccess.
But I am thinking about this too..
Do some change in wp-config.php

define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
// add the next line if you have a subdirectory install
define('WP_SITEURL', WP_HOME . LANGUAGE. '/foobar');

Define LANGUAGE by getting the ip. So when you call home_url it should now
be according to the location..

What about that?

2016-03-16 14:01 GMT+01:00 Frank Bueltge <[hidden email]>:

> If you need a rewrite in dependence to the IP, then use a library and
> custom source.
> But maybe it is the right way, that you rewrite to the right language from
> the the language of the browser, user settings.
> The last way is include the plugin, that I mentioned - MultilingualPress.
> (more infos: http://multilingualpress.pro/)
>
> Liebe Grüße
> Frank
> Ⓦ WordPress solution architect
> __
> http://bueltge.de
> http://inpsyde.com
> http://multilingualpress.pro
> http://marketpress.com
>
> Privat: +49 36428 169305 | Mobil: +49 170 5322053
>
> Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
> Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
>
> On Wed, Mar 16, 2016 at 1:58 PM, pushpendu mondal <
> [hidden email]> wrote:
>
> > Yes, We can use wp_redirect for pages but how change the home url(), Will
> > it work on wp-redirect work on wp-config page or can this be done using
> > HTACCESS?
> >
> >
> >
> > On Wed, Mar 16, 2016 at 6:18 PM, Joel Mandell <[hidden email]>
> > wrote:
> >
> > > You can use https://freegeoip.net/ to get the country according to
> it's
> > ip
> > > and use wp_redirect.
> > >
> > > 2016-03-16 13:35 GMT+01:00 pushpendu mondal <
> > [hidden email]
> > > >:
> > >
> > > > Hi,
> > > >
> > > > But how can I detect the IP from where anyone is viewing, I mean how
> > can
> > > I
> > > > change my home url dynamically with respect to country.
> > > >
> > > > Thanks
> > > >
> > > > On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]>
> > wrote:
> > > >
> > > > > If you have also different content, language for each key "de" etc.
> > > then
> > > > > think about a solution via WP Multisite, each site for each
> language
> > > key.
> > > > > You can also create relationship between objects, like post, page,
> > > > > taxonomy, then can help the plugin MultilingualPress or custom
> > source.
> > > > >
> > > > > Best.
> > > > >
> > > > > Liebe Grüße
> > > > > Frank
> > > > > Ⓦ WordPress solution architect
> > > > > __
> > > > > http://bueltge.de
> > > > > http://inpsyde.com
> > > > > http://multilingualpress.pro
> > > > > http://marketpress.com
> > > > >
> > > > > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> > > > >
> > > > > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> > > > Gladbach
> > > > > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > > > > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224,
> Amtsgericht
> > > > Köln
> > > > >
> > > > > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <
> [hidden email]
> > >
> > > > > wrote:
> > > > >
> > > > > > I think you can use
> > > > > >
> > > > > > <link rel="alternate" type="text/html" hreflang="de" href="/de/"
> />
> > > > > >
> > > > > > And do that for every language.
> > > > > > Think it should be sufficient.
> > > > > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > > > > [hidden email]>:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Guys, I came across a problem and I require some help.
> > > > > > > The problem is that I want to have different Home_Url with
> > respect
> > > to
> > > > > IP
> > > > > > or
> > > > > > > the location where anyone belong.
> > > > > > >
> > > > > > > for example:
> > > > > > >  If I stays in United States, I want to have my Home_Url like*
> > > > > > > https://www.example.com/ <https://www.example.com/>* so when
> > > anyone
> > > > > > tries
> > > > > > > to open my site he should be redirected to above link.
> > > > > > >
> > > > > > > If I stay in Germany , I want to have my Home_Url like*
> > > > > > > https://www.example.com/de <https://www.example.com/de>* so
> when
> > > > > anyone
> > > > > > > tries to open my site he should be redirected to this link.
> > > > > > >
> > > > > > > How can I achieve this, Is there any way or any plugin?
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > --
> > > > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > > > *T :* +91 33 66155181
> > > > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > > > www.delgence.com
> > > > > > > *E :* [hidden email] <
> > > [hidden email]>
> > > > > > > *INDIA*
> > > > > > > Rishi Tech Park New Town,
> > > > > > > Rajarhat ,WB,
> > > > > > > Kol.700156. *USA: Delgence LLC*
> > > > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > > > USA
> > > > > > > _______________________________________________
> > > > > > > wp-hackers mailing list
> > > > > > > [hidden email]
> > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > >
> > > > > > _______________________________________________
> > > > > > wp-hackers mailing list
> > > > > > [hidden email]
> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > >
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > [hidden email]
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > *T :* +91 33 66155181
> > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > www.delgence.com
> > > > *E :* [hidden email] <[hidden email]>
> > > > *INDIA*
> > > > Rishi Tech Park New Town,
> > > > Rajarhat ,WB,
> > > > Kol.700156. *USA: Delgence LLC*
> > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > USA
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > >
> > >
> > >
> > > --
> > > *Telefon:*
> > > 070-8950293
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > *Pushpendu Mondal* (Senior WordPress Developer)
> > *T :* +91 33 66155181
> > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> > *E :* [hidden email] <[hidden email]>
> > *INDIA*
> > Rishi Tech Park New Town,
> > Rajarhat ,WB,
> > Kol.700156. *USA: Delgence LLC*
> > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > USA
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
*Telefon:*
070-8950293
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

Koen Van den Wijngaert
In reply to this post by Frank Bueltge
Full disclosure: MultilingualPress is developed by Frank Bültge's company
Inpsyde <http://inpsyde.com/>.

A few developers of this plugin are big names in the WordPress community,
so I'm quite sure this plugin is great, although I haven't used it myself.
However, you should also take the other options into account (WPML,
qTranslate, Polylang, ...).

Good luck!

Met vriendelijke groeten,

Koen Van den Wijngaert

On Wed, Mar 16, 2016 at 2:01 PM, Frank Bueltge <[hidden email]> wrote:

> If you need a rewrite in dependence to the IP, then use a library and
> custom source.
> But maybe it is the right way, that you rewrite to the right language from
> the the language of the browser, user settings.
> The last way is include the plugin, that I mentioned - MultilingualPress.
> (more infos: http://multilingualpress.pro/)
>
> Liebe Grüße
> Frank
> Ⓦ WordPress solution architect
> __
> http://bueltge.de
> http://inpsyde.com
> http://multilingualpress.pro
> http://marketpress.com
>
> Privat: +49 36428 169305 | Mobil: +49 170 5322053
>
> Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
> Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
>
> On Wed, Mar 16, 2016 at 1:58 PM, pushpendu mondal <
> [hidden email]> wrote:
>
> > Yes, We can use wp_redirect for pages but how change the home url(), Will
> > it work on wp-redirect work on wp-config page or can this be done using
> > HTACCESS?
> >
> >
> >
> > On Wed, Mar 16, 2016 at 6:18 PM, Joel Mandell <[hidden email]>
> > wrote:
> >
> > > You can use https://freegeoip.net/ to get the country according to
> it's
> > ip
> > > and use wp_redirect.
> > >
> > > 2016-03-16 13:35 GMT+01:00 pushpendu mondal <
> > [hidden email]
> > > >:
> > >
> > > > Hi,
> > > >
> > > > But how can I detect the IP from where anyone is viewing, I mean how
> > can
> > > I
> > > > change my home url dynamically with respect to country.
> > > >
> > > > Thanks
> > > >
> > > > On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]>
> > wrote:
> > > >
> > > > > If you have also different content, language for each key "de" etc.
> > > then
> > > > > think about a solution via WP Multisite, each site for each
> language
> > > key.
> > > > > You can also create relationship between objects, like post, page,
> > > > > taxonomy, then can help the plugin MultilingualPress or custom
> > source.
> > > > >
> > > > > Best.
> > > > >
> > > > > Liebe Grüße
> > > > > Frank
> > > > > Ⓦ WordPress solution architect
> > > > > __
> > > > > http://bueltge.de
> > > > > http://inpsyde.com
> > > > > http://multilingualpress.pro
> > > > > http://marketpress.com
> > > > >
> > > > > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> > > > >
> > > > > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> > > > Gladbach
> > > > > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > > > > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224,
> Amtsgericht
> > > > Köln
> > > > >
> > > > > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <
> [hidden email]
> > >
> > > > > wrote:
> > > > >
> > > > > > I think you can use
> > > > > >
> > > > > > <link rel="alternate" type="text/html" hreflang="de" href="/de/"
> />
> > > > > >
> > > > > > And do that for every language.
> > > > > > Think it should be sufficient.
> > > > > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > > > > [hidden email]>:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Guys, I came across a problem and I require some help.
> > > > > > > The problem is that I want to have different Home_Url with
> > respect
> > > to
> > > > > IP
> > > > > > or
> > > > > > > the location where anyone belong.
> > > > > > >
> > > > > > > for example:
> > > > > > >  If I stays in United States, I want to have my Home_Url like*
> > > > > > > https://www.example.com/ <https://www.example.com/>* so when
> > > anyone
> > > > > > tries
> > > > > > > to open my site he should be redirected to above link.
> > > > > > >
> > > > > > > If I stay in Germany , I want to have my Home_Url like*
> > > > > > > https://www.example.com/de <https://www.example.com/de>* so
> when
> > > > > anyone
> > > > > > > tries to open my site he should be redirected to this link.
> > > > > > >
> > > > > > > How can I achieve this, Is there any way or any plugin?
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > --
> > > > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > > > *T :* +91 33 66155181
> > > > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > > > www.delgence.com
> > > > > > > *E :* [hidden email] <
> > > [hidden email]>
> > > > > > > *INDIA*
> > > > > > > Rishi Tech Park New Town,
> > > > > > > Rajarhat ,WB,
> > > > > > > Kol.700156. *USA: Delgence LLC*
> > > > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > > > USA
> > > > > > > _______________________________________________
> > > > > > > wp-hackers mailing list
> > > > > > > [hidden email]
> > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > >
> > > > > > _______________________________________________
> > > > > > wp-hackers mailing list
> > > > > > [hidden email]
> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > >
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > [hidden email]
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > *T :* +91 33 66155181
> > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > www.delgence.com
> > > > *E :* [hidden email] <[hidden email]>
> > > > *INDIA*
> > > > Rishi Tech Park New Town,
> > > > Rajarhat ,WB,
> > > > Kol.700156. *USA: Delgence LLC*
> > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > USA
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > >
> > >
> > >
> > > --
> > > *Telefon:*
> > > 070-8950293
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > *Pushpendu Mondal* (Senior WordPress Developer)
> > *T :* +91 33 66155181
> > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
> > *E :* [hidden email] <[hidden email]>
> > *INDIA*
> > Rishi Tech Park New Town,
> > Rajarhat ,WB,
> > Kol.700156. *USA: Delgence LLC*
> > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > USA
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

pushpendu mondal
Yes, Changing the HTACCESS can help me sort out, I have already use WPML
plugin but they don't have any url according to IP.

On Wed, Mar 16, 2016 at 6:41 PM, Koen Van den Wijngaert <
[hidden email]> wrote:

> Full disclosure: MultilingualPress is developed by Frank Bültge's company
> Inpsyde <http://inpsyde.com/>.
>
> A few developers of this plugin are big names in the WordPress community,
> so I'm quite sure this plugin is great, although I haven't used it myself.
> However, you should also take the other options into account (WPML,
> qTranslate, Polylang, ...).
>
> Good luck!
>
> Met vriendelijke groeten,
>
> Koen Van den Wijngaert
>
> On Wed, Mar 16, 2016 at 2:01 PM, Frank Bueltge <[hidden email]> wrote:
>
> > If you need a rewrite in dependence to the IP, then use a library and
> > custom source.
> > But maybe it is the right way, that you rewrite to the right language
> from
> > the the language of the browser, user settings.
> > The last way is include the plugin, that I mentioned - MultilingualPress.
> > (more infos: http://multilingualpress.pro/)
> >
> > Liebe Grüße
> > Frank
> > Ⓦ WordPress solution architect
> > __
> > http://bueltge.de
> > http://inpsyde.com
> > http://multilingualpress.pro
> > http://marketpress.com
> >
> > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> >
> > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> Gladbach
> > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht
> Köln
> >
> > On Wed, Mar 16, 2016 at 1:58 PM, pushpendu mondal <
> > [hidden email]> wrote:
> >
> > > Yes, We can use wp_redirect for pages but how change the home url(),
> Will
> > > it work on wp-redirect work on wp-config page or can this be done using
> > > HTACCESS?
> > >
> > >
> > >
> > > On Wed, Mar 16, 2016 at 6:18 PM, Joel Mandell <[hidden email]>
> > > wrote:
> > >
> > > > You can use https://freegeoip.net/ to get the country according to
> > it's
> > > ip
> > > > and use wp_redirect.
> > > >
> > > > 2016-03-16 13:35 GMT+01:00 pushpendu mondal <
> > > [hidden email]
> > > > >:
> > > >
> > > > > Hi,
> > > > >
> > > > > But how can I detect the IP from where anyone is viewing, I mean
> how
> > > can
> > > > I
> > > > > change my home url dynamically with respect to country.
> > > > >
> > > > > Thanks
> > > > >
> > > > > On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]>
> > > wrote:
> > > > >
> > > > > > If you have also different content, language for each key "de"
> etc.
> > > > then
> > > > > > think about a solution via WP Multisite, each site for each
> > language
> > > > key.
> > > > > > You can also create relationship between objects, like post,
> page,
> > > > > > taxonomy, then can help the plugin MultilingualPress or custom
> > > source.
> > > > > >
> > > > > > Best.
> > > > > >
> > > > > > Liebe Grüße
> > > > > > Frank
> > > > > > Ⓦ WordPress solution architect
> > > > > > __
> > > > > > http://bueltge.de
> > > > > > http://inpsyde.com
> > > > > > http://multilingualpress.pro
> > > > > > http://marketpress.com
> > > > > >
> > > > > > Privat: +49 36428 169305 | Mobil: +49 170 5322053
> > > > > >
> > > > > > Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch
> > > > > Gladbach
> > > > > > Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
> > > > > > Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224,
> > Amtsgericht
> > > > > Köln
> > > > > >
> > > > > > On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <
> > [hidden email]
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > I think you can use
> > > > > > >
> > > > > > > <link rel="alternate" type="text/html" hreflang="de"
> href="/de/"
> > />
> > > > > > >
> > > > > > > And do that for every language.
> > > > > > > Think it should be sufficient.
> > > > > > > Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
> > > > > > > [hidden email]>:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > Guys, I came across a problem and I require some help.
> > > > > > > > The problem is that I want to have different Home_Url with
> > > respect
> > > > to
> > > > > > IP
> > > > > > > or
> > > > > > > > the location where anyone belong.
> > > > > > > >
> > > > > > > > for example:
> > > > > > > >  If I stays in United States, I want to have my Home_Url
> like*
> > > > > > > > https://www.example.com/ <https://www.example.com/>* so when
> > > > anyone
> > > > > > > tries
> > > > > > > > to open my site he should be redirected to above link.
> > > > > > > >
> > > > > > > > If I stay in Germany , I want to have my Home_Url like*
> > > > > > > > https://www.example.com/de <https://www.example.com/de>* so
> > when
> > > > > > anyone
> > > > > > > > tries to open my site he should be redirected to this link.
> > > > > > > >
> > > > > > > > How can I achieve this, Is there any way or any plugin?
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >
> > > > > > > > --
> > > > > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > > > > *T :* +91 33 66155181
> > > > > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > > > > www.delgence.com
> > > > > > > > *E :* [hidden email] <
> > > > [hidden email]>
> > > > > > > > *INDIA*
> > > > > > > > Rishi Tech Park New Town,
> > > > > > > > Rajarhat ,WB,
> > > > > > > > Kol.700156. *USA: Delgence LLC*
> > > > > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > > > > USA
> > > > > > > > _______________________________________________
> > > > > > > > wp-hackers mailing list
> > > > > > > > [hidden email]
> > > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > >
> > > > > > > _______________________________________________
> > > > > > > wp-hackers mailing list
> > > > > > > [hidden email]
> > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > >
> > > > > > _______________________________________________
> > > > > > wp-hackers mailing list
> > > > > > [hidden email]
> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > > > *T :* +91 33 66155181
> > > > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> > > www.delgence.com
> > > > > *E :* [hidden email] <
> [hidden email]>
> > > > > *INDIA*
> > > > > Rishi Tech Park New Town,
> > > > > Rajarhat ,WB,
> > > > > Kol.700156. *USA: Delgence LLC*
> > > > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > > > USA
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > [hidden email]
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Telefon:*
> > > > 070-8950293
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > [hidden email]
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > >
> > >
> > >
> > > --
> > > *Pushpendu Mondal* (Senior WordPress Developer)
> > > *T :* +91 33 66155181
> > > *M :* +91 9614648464 *Netherlands: Delgence B.V*
> > > Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
> www.delgence.com
> > > *E :* [hidden email] <[hidden email]>
> > > *INDIA*
> > > Rishi Tech Park New Town,
> > > Rajarhat ,WB,
> > > Kol.700156. *USA: Delgence LLC*
> > > 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
> > > USA
> > > _______________________________________________
> > > wp-hackers mailing list
> > > [hidden email]
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > [hidden email]
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> [hidden email]
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
*Pushpendu Mondal* (Senior WordPress Developer)
*T :* +91 33 66155181
*M :* +91 9614648464 *Netherlands: Delgence B.V*
Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :* www.delgence.com
*E :* [hidden email] <[hidden email]>
*INDIA*
Rishi Tech Park New Town,
Rajarhat ,WB,
Kol.700156. *USA: Delgence LLC*
675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
USA
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers
Reply | Threaded
Open this post in threaded view
|

Re: Making different home URL

abdussamad
In reply to this post by pushpendu mondal
Hi,

Install mod_geoip for apache. It'll use the free geoip database from
maxmind. This is assuming you have root access to the server. After this
is installed you can just refer to $_SERVER['GEOIP_COUNTRY_NAME'] and
$_SERVER['GEOIP_COUNTRY_CODE'] to redirect people using PHP. .htaccess
level redirects are also possible and are infact better than doing it in
PHP. I think something like this will do it in .htaccess

rewritecond %{GEOIP_COUNTRY_CODE} =de
rewritecond %{HTTP_HOST} !^de.example.com
RewriteRule ^(.*)$ http://de.example.com/$1 [R=301,L]

If you don't have server level access then look up geoip lite apis from
maxmind. They offer a PHP SDK too. The database is called geoip lite
country. You can then make a plugin that does the redirect based on the
geoip mapping.

Regards,
Abdussamad

On 03/16/2016 05:35 PM, pushpendu mondal wrote:

> Hi,
>
> But how can I detect the IP from where anyone is viewing, I mean how can I
> change my home url dynamically with respect to country.
>
> Thanks
>
> On Wed, Mar 16, 2016 at 6:01 PM, Frank Bueltge <[hidden email]> wrote:
>
>> If you have also different content, language for each key "de" etc. then
>> think about a solution via WP Multisite, each site for each language key.
>> You can also create relationship between objects, like post, page,
>> taxonomy, then can help the plugin MultilingualPress or custom source.
>>
>> Best.
>>
>> Liebe Grüße
>> Frank
>> Ⓦ WordPress solution architect
>> __
>> http://bueltge.de
>> http://inpsyde.com
>> http://multilingualpress.pro
>> http://marketpress.com
>>
>> Privat: +49 36428 169305 | Mobil: +49 170 5322053
>>
>> Inpsyde GmbH, http://inpsyde.com, Mutzer Heide 3, 51467 Bergisch Gladbach
>> Steuernr: 204/5756/0999, Steueridentnr.: DE263849534
>> Geschäftsführender Gesellschafter: Heinz Rohé, HRB 65224, Amtsgericht Köln
>>
>> On Wed, Mar 16, 2016 at 1:28 PM, Joel Mandell <[hidden email]>
>> wrote:
>>
>>> I think you can use
>>>
>>> <link rel="alternate" type="text/html" hreflang="de" href="/de/" />
>>>
>>> And do that for every language.
>>> Think it should be sufficient.
>>> Den 16 mar 2016 13:23 skrev "pushpendu mondal" <
>>> [hidden email]>:
>>>
>>>> Hi,
>>>>
>>>> Guys, I came across a problem and I require some help.
>>>> The problem is that I want to have different Home_Url with respect to
>> IP
>>> or
>>>> the location where anyone belong.
>>>>
>>>> for example:
>>>>   If I stays in United States, I want to have my Home_Url like*
>>>> https://www.example.com/ <https://www.example.com/>* so when  anyone
>>> tries
>>>> to open my site he should be redirected to above link.
>>>>
>>>> If I stay in Germany , I want to have my Home_Url like*
>>>> https://www.example.com/de <https://www.example.com/de>* so when
>> anyone
>>>> tries to open my site he should be redirected to this link.
>>>>
>>>> How can I achieve this, Is there any way or any plugin?
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> *Pushpendu Mondal* (Senior WordPress Developer)
>>>> *T :* +91 33 66155181
>>>> *M :* +91 9614648464 *Netherlands: Delgence B.V*
>>>> Liessentstraat 9a, 5405 AH Uden The Netherlands. *W :*
>> www.delgence.com
>>>> *E :* [hidden email] <[hidden email]>
>>>> *INDIA*
>>>> Rishi Tech Park New Town,
>>>> Rajarhat ,WB,
>>>> Kol.700156. *USA: Delgence LLC*
>>>> 675 Ocean Avenue. Unit 2F Long Branch, NJ-07740
>>>> USA
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> [hidden email]
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> [hidden email]
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> [hidden email]
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
>
_______________________________________________
wp-hackers mailing list
[hidden email]
http://lists.automattic.com/mailman/listinfo/wp-hackers