开发者

How is WordPress redirecting/rewriting my URL?

开发者 https://www.devze.com 2023-03-28 06:33 出处:网络
i\'m running a wordpress free classified w开发者_StackOverflow社区ebsite and the address is http://www.gosell.co.uk what i need is if a user from london open this url then it should be concatenated wi

i'm running a wordpress free classified w开发者_StackOverflow社区ebsite and the address is http://www.gosell.co.uk what i need is if a user from london open this url then it should be concatenated with http://www.gosell.co.uk/longon how is that possible? shall i make a new function or wat? Thanks in advance.


Hook into init action (http://codex.wordpress.org/Function_Reference/add_action), detect where is your visitor from using some of available geoip solutions, and then use wp_redirect to redirect to the right url...

0

精彩评论

暂无评论...
验证码 换一张
取 消