Hi, everyone!
I will be more precise.
When someone clicks on my link and it is on the computer it is redirected on offer 1 and if it is on mobile that it is redirected on offer 2.
Like a geo script but here depending on the device.
Not quite sure how you will be able to do it?
I would connect to my vps thru SSH and edit the conf files of my nginx-Webserver.
I would add something close to this:
server {
server_name domain.com;
listen 80;
#----- redirect to mobile check (starts) -----#
set $mobile_rewrite do_not_perform;
# this regex string is actually much longer to match more mobile devices
if ($http_user_agent ~* "|android|ip(ad|hone|od)|kindle") {
set $mobile_rewrite perform;
}
Dreamweaver does have bunch of those responsive template which does this for you. You just pick what sort of grid layout you need and develop content on that. Dreamweaver created all those responsive parts which change depending device resolution.
So you have different languages and for each a own mobile site? To be honest sound more a problem of website design and not serverconfig. But In the config you could use both:
Step 1 check Geo DNS and step 2 check for useragent. Rewrite to country specific mobile or desktop url.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.