{"id":2860,"date":"2012-06-20T05:53:10","date_gmt":"2012-06-20T09:53:10","guid":{"rendered":"http:\/\/www.mccordweb.com\/weblogs\/?p=2860"},"modified":"2012-06-16T10:02:39","modified_gmt":"2012-06-16T14:02:39","slug":"mobile-website-redirection-tactics","status":"publish","type":"post","link":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/","title":{"rendered":"Mobile Website Redirection Tactics"},"content":{"rendered":"<p>I recently have been testing out mobile website design. Although there are some great free tools out there that automatically make a mobile website for you, I simply did not want THAT much content on my mobile site. I wanted a streamlined small interface with just my key services and phone links. PLUS I wanted the website files to reside on MY server, not over at Bing Local or over at Dudamobile.com.<\/p>\n<p>I found a template at Dreamweaver to help me used JQuery to create a mobile website. <a href=\"http:\/\/www.adobe.com\/devnet\/dreamweaver\/articles\/dw-template-jqmobile.html\">You can check out the video and grab the files here.<\/a>\u00a0I was able to pretty easily customize the site and CSS, but really ran into a problem getting the site to show for mobile users.<\/p>\n<p>Typically a &#8220;sniffing&#8221; script will be used to deliver content for mobile phones, but the scripts I found simply did not work. My Android smartphone still saw my desktop website. I found that the CSS declaration that identifies screen width and then redirects the used did not work for me, nor did several other php scripts. I ended up using a .htaccess redirect.<\/p>\n<p>This is the code I used in the .htaccess file:<\/p>\n<p># mobile site redirection<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/(.*).mccordweb.com\/.*$ [NC]<br \/>\nRewriteCond %{REQUEST_URI} !^\/mobile\/.*$<br \/>\nRewriteCond %{HTTP_USER_AGENT} &#8220;android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile&#8221; [NC]<br \/>\nRewriteRule ^(.*)$ \/mobile\/ [L,R=302]<\/p>\n<p>This worked for me. You can check out my mobile site at <a href=\"http:\/\/www.mccordweb.com\/mobile\/\">http:\/\/www.mccordweb.com\/mobile\/<\/a>\u00a0but you&#8217;ll only see if on your smartphone, don&#8217;t got there with your browser. Mine is still a work in progress, but something that I am testing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently have been testing out mobile website design. Although there are some great free tools out there that automatically make a mobile website for you, I simply did not want THAT much content on my mobile site. I wanted a streamlined small interface with just my key services and phone links. PLUS I wanted the website files to reside on MY server, not over at Bing Local or over at Dudamobile.com. I found a template at Dreamweaver to help me used JQuery to create a mobile website. You can check out the video and grab the files here.\u00a0I was able to pretty easily customize the site and CSS, but really ran into a problem getting the site to show for mobile users. Typically a &#8220;sniffing&#8221; script will be used to deliver content for mobile phones, but the scripts I found simply did not work. My Android smartphone still saw my desktop website. I found that the CSS declaration that identifies screen width and then redirects the used did not work for me, nor did several other php scripts. I ended up using a .htaccess redirect. This is the code I used in the .htaccess file: # mobile site redirection RewriteCond %{HTTP_REFERER} !^http:\/\/(.*).mccordweb.com\/.*$ [NC] RewriteCond %{REQUEST_URI} !^\/mobile\/.*$ RewriteCond %{HTTP_USER_AGENT} &#8220;android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile&#8221; [NC] RewriteRule ^(.*)$ \/mobile\/ [L,R=302] This worked for me. You can check out my mobile site at http:\/\/www.mccordweb.com\/mobile\/\u00a0but you&#8217;ll only see if on your smartphone, don&#8217;t got there with your browser. Mine is still a work in progress, but something that I am testing.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[271],"class_list":["post-2860","post","type-post","status-publish","format-standard","hentry","category-web-design","tag-website-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mobile Website Redirection Tactics | The Web Authority<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mobile Website Redirection Tactics | The Web Authority\" \/>\n<meta property=\"og:description\" content=\"I recently have been testing out mobile website design. Although there are some great free tools out there that automatically make a mobile website for you, I simply did not want THAT much content on my mobile site. I wanted a streamlined small interface with just my key services and phone links. PLUS I wanted the website files to reside on MY server, not over at Bing Local or over at Dudamobile.com. I found a template at Dreamweaver to help me used JQuery to create a mobile website. You can check out the video and grab the files here.\u00a0I was able to pretty easily customize the site and CSS, but really ran into a problem getting the site to show for mobile users. Typically a &#8220;sniffing&#8221; script will be used to deliver content for mobile phones, but the scripts I found simply did not work. My Android smartphone still saw my desktop website. I found that the CSS declaration that identifies screen width and then redirects the used did not work for me, nor did several other php scripts. I ended up using a .htaccess redirect. This is the code I used in the .htaccess file: # mobile site redirection RewriteCond %{HTTP_REFERER} !^http:\/\/(.*).mccordweb.com\/.*$ [NC] RewriteCond %{REQUEST_URI} !^\/mobile\/.*$ RewriteCond %{HTTP_USER_AGENT} &#8220;android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile&#8221; [NC] RewriteRule ^(.*)$ \/mobile\/ [L,R=302] This worked for me. You can check out my mobile site at http:\/\/www.mccordweb.com\/mobile\/\u00a0but you&#8217;ll only see if on your smartphone, don&#8217;t got there with your browser. Mine is still a work in progress, but something that I am testing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/\" \/>\n<meta property=\"og:site_name\" content=\"The Web Authority\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mccordweb\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-20T09:53:10+00:00\" \/>\n<meta name=\"author\" content=\"Nancy McCord\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mccordweb\" \/>\n<meta name=\"twitter:site\" content=\"@mccordweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nancy McCord\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/\"},\"author\":{\"name\":\"Nancy McCord\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#\\\/schema\\\/person\\\/7499f3ac0b008bc0e5b7a138ac1dc0ba\"},\"headline\":\"Mobile Website Redirection Tactics\",\"datePublished\":\"2012-06-20T09:53:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/\"},\"wordCount\":279,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#organization\"},\"keywords\":[\"Website Design\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/\",\"url\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/\",\"name\":\"Mobile Website Redirection Tactics | The Web Authority\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#website\"},\"datePublished\":\"2012-06-20T09:53:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/2012\\\/06\\\/20\\\/mobile-website-redirection-tactics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mobile Website Redirection Tactics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#website\",\"url\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/\",\"name\":\"The Web Authority | McCord Web Services News\\\/Blog\",\"description\":\"Smart Digital Marketing, Real Business Results - McCord Web Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#organization\",\"name\":\"McCord Web Services LLC\",\"url\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/McCord-Web-White-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/McCord-Web-White-logo.png\",\"width\":450,\"height\":203,\"caption\":\"McCord Web Services LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/mccordweb\",\"https:\\\/\\\/x.com\\\/mccordweb\",\"https:\\\/\\\/www.instagram.com\\\/nancy_mccord\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/nancymccord\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/mccordweb\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mccordweb.com\\\/weblogs\\\/#\\\/schema\\\/person\\\/7499f3ac0b008bc0e5b7a138ac1dc0ba\",\"name\":\"Nancy McCord\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g\",\"caption\":\"Nancy McCord\"},\"sameAs\":[\"http:\\\/\\\/www.mccordweb.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mobile Website Redirection Tactics | The Web Authority","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/","og_locale":"en_US","og_type":"article","og_title":"Mobile Website Redirection Tactics | The Web Authority","og_description":"I recently have been testing out mobile website design. Although there are some great free tools out there that automatically make a mobile website for you, I simply did not want THAT much content on my mobile site. I wanted a streamlined small interface with just my key services and phone links. PLUS I wanted the website files to reside on MY server, not over at Bing Local or over at Dudamobile.com. I found a template at Dreamweaver to help me used JQuery to create a mobile website. You can check out the video and grab the files here.\u00a0I was able to pretty easily customize the site and CSS, but really ran into a problem getting the site to show for mobile users. Typically a &#8220;sniffing&#8221; script will be used to deliver content for mobile phones, but the scripts I found simply did not work. My Android smartphone still saw my desktop website. I found that the CSS declaration that identifies screen width and then redirects the used did not work for me, nor did several other php scripts. I ended up using a .htaccess redirect. This is the code I used in the .htaccess file: # mobile site redirection RewriteCond %{HTTP_REFERER} !^http:\/\/(.*).mccordweb.com\/.*$ [NC] RewriteCond %{REQUEST_URI} !^\/mobile\/.*$ RewriteCond %{HTTP_USER_AGENT} &#8220;android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile&#8221; [NC] RewriteRule ^(.*)$ \/mobile\/ [L,R=302] This worked for me. You can check out my mobile site at http:\/\/www.mccordweb.com\/mobile\/\u00a0but you&#8217;ll only see if on your smartphone, don&#8217;t got there with your browser. Mine is still a work in progress, but something that I am testing.","og_url":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/","og_site_name":"The Web Authority","article_publisher":"https:\/\/www.facebook.com\/mccordweb","article_published_time":"2012-06-20T09:53:10+00:00","author":"Nancy McCord","twitter_card":"summary_large_image","twitter_creator":"@mccordweb","twitter_site":"@mccordweb","twitter_misc":{"Written by":"Nancy McCord","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/#article","isPartOf":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/"},"author":{"name":"Nancy McCord","@id":"https:\/\/www.mccordweb.com\/weblogs\/#\/schema\/person\/7499f3ac0b008bc0e5b7a138ac1dc0ba"},"headline":"Mobile Website Redirection Tactics","datePublished":"2012-06-20T09:53:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/"},"wordCount":279,"commentCount":0,"publisher":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/#organization"},"keywords":["Website Design"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/","url":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/","name":"Mobile Website Redirection Tactics | The Web Authority","isPartOf":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/#website"},"datePublished":"2012-06-20T09:53:10+00:00","breadcrumb":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mccordweb.com\/weblogs\/2012\/06\/20\/mobile-website-redirection-tactics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mccordweb.com\/weblogs\/"},{"@type":"ListItem","position":2,"name":"Mobile Website Redirection Tactics"}]},{"@type":"WebSite","@id":"https:\/\/www.mccordweb.com\/weblogs\/#website","url":"https:\/\/www.mccordweb.com\/weblogs\/","name":"The Web Authority | McCord Web Services News\/Blog","description":"Smart Digital Marketing, Real Business Results - McCord Web Services","publisher":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mccordweb.com\/weblogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mccordweb.com\/weblogs\/#organization","name":"McCord Web Services LLC","url":"https:\/\/www.mccordweb.com\/weblogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mccordweb.com\/weblogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.mccordweb.com\/weblogs\/wp-content\/uploads\/2025\/09\/McCord-Web-White-logo.png","contentUrl":"https:\/\/www.mccordweb.com\/weblogs\/wp-content\/uploads\/2025\/09\/McCord-Web-White-logo.png","width":450,"height":203,"caption":"McCord Web Services LLC"},"image":{"@id":"https:\/\/www.mccordweb.com\/weblogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mccordweb","https:\/\/x.com\/mccordweb","https:\/\/www.instagram.com\/nancy_mccord\/","https:\/\/www.linkedin.com\/in\/nancymccord","https:\/\/www.youtube.com\/user\/mccordweb"]},{"@type":"Person","@id":"https:\/\/www.mccordweb.com\/weblogs\/#\/schema\/person\/7499f3ac0b008bc0e5b7a138ac1dc0ba","name":"Nancy McCord","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/84f303fb7bc8bf9e3aa944d8a2b0913642ca2c0cb4e244d9bbea83c59dac189e?s=96&d=blank&r=g","caption":"Nancy McCord"},"sameAs":["http:\/\/www.mccordweb.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/posts\/2860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/comments?post=2860"}],"version-history":[{"count":1,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/posts\/2860\/revisions"}],"predecessor-version":[{"id":2861,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/posts\/2860\/revisions\/2861"}],"wp:attachment":[{"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/media?parent=2860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/categories?post=2860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mccordweb.com\/weblogs\/wp-json\/wp\/v2\/tags?post=2860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}