Created
March 9, 2012 09:26
-
-
Save speedupmate/2005826 to your computer and use it in GitHub Desktop.
mod_rewrite mobile users to regular checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{HTTP_USER_AGENT} ^.*(iPhone|iPod|BlackBerry|Palm|Googlebot\-Mobile|Mobile|mobile|mobi|Windows\ Mobile|Safari\ Mobile|Android|Opera\ Mini).*$ [NC] | |
RewriteCond %{REQUEST_URI} ^.*(onestepcheckout) | |
RewriteRule .* /checkout/onepage/ [R,L] |
cool , thanks for this input
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nginx configuration -
if ($http_user_agent ~* "^.(iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows\ Mobile|Safari\ Mobile|Android|Opera\ Mini).$"){
rewrite ^/onestepcheckout/ /checkout/onepage/ redirect;
}