I have a wordpress website http://domain.com. I have created a mobile
version of it and put in “m” folder of that domain. I want all my mobile
users to be redirected to http://m.domain.com where http://m.domain.com
will be using a mobile version of the website located in “m” folder. By
using the below rewrite rules, it does redirect to http://m.domain.com
but it does not display any website from the “m” folder. ( Please help:
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf; #include /usr/local/nginx/conf/errorpage.conf;
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf; #include /usr/local/nginx/conf/errorpage.conf;
}
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.