Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub vcl_recv {
- if (req.http.user-agent ~ "iP(hone|od)|android|(?i)^samsung|(?i)android|(?i)android 3") {
- error 750 "Moved Temporarily";
- }
- }
- sub vcl_error {
- if (obj.status == 750) {
- set obj.http.Location = "http://m.website.com" + req.url;
- set obj.status = 301;
- return(deliver);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement