How to serve a Mobile & Full Site using one URL?
-
Hello,
Does anyone know of any resources or tutorials that outline how to serve a smartphone-formatted website using the same URL as the full site?
I know that one solution is using media-queries to serve a seperate CSS stylesheet, but you still have the full HTML source code. In other words, I might want to serve a smartphone & desktop user different content, but under one URL.
WP Touch (Wordpress Plugin) is a perfect example of what I mean, but how is it technically achieved? It serves two different sets of HTML for smartphone & full, but using one URL
-
No, I am also in the process of enquiring, I program in ASP.Net MVC, and the new MVC4 comes with a few starter templates (with Visual Studio 2010), this is where i got the info i suggested.
I can send you a starter template if you like, you can have a look though if you like. Actualy you will need VS2010 to run it, you can down load a trial but then you may as well download MVC4 as well.
-
Hi Alan,
Thanks very much, I agree - it likely would be easier to use media queries, but I am looking for that ultimate fix and insight on how others do it
-
Then of cause you would need to use a server side solution, this is quite simple in therory, all you need to do is get the severvariable HTTP_USER_AGENT to detect the browser, but then there would be a lot of different serveragenst to detect and more in the future. It would also be a pain having to generate html via server script for every page. I tried doing that for Netscape 2 and IE2 but gave up, it was too much work. Back in those days the way of doing things in browsers was completely different untill IE won out.
I think the eay i was saying is much easier, and there is no missing html, its all used on both versions just positioned different.
-
Hi Alan,
As mentioned. I'm not looking for a CSS solution, but rather a HTML one where different HTML is served if the user-agent is a smartphone.
CSS Media Queries can work in some situations, but not for all. For example, taking the following page - http://www.flybmi.com/bmi/en-gb/index.aspx - and using a mixture of CSS and display none; to output http://www.flybmi.com/mobile would result in a mobile site full of hidden/wasted code.
-
I have a few examples. i used the tag in the head section of the html.
Along with Media css see below. you slip this css into your normal css sheet, and give an alternitive css inside for phones,
if you look at one of my sites http://perthseocompany.com.au/ i have done like this you will notice that when the screen size goes below 850px it then takes on the alternative css. One of the main things you will want to do is make sections of your website line up verticly under the alternitive. You can do this by using float left and float right in normal site and float none in alternative css.
I do not have my site perfect because i have not yet had the time. but you get the general idea by playing with browser width.
Note the max-width: 850px in css, this is the width at witch the css changes@media only screen and (max-width: 850px)
{header .float-left, header .float-right
{
float: none;
}
} -
Hi Tommy,
This doesn't provide any technical answers unfortunately, and refers to mobile devices as opposed to smartphones. Googlebot-mobile is designed for WAP/iMode etc. style websites, Google on smartphones, tablets etc. displays the same results as the desktop version.
-
Hi Pete!
Take a look in Googles SEO guide on page 26, http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf
Good luck!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Changed url and now not listing
hi guys I had this page "https://www.stauntonrook.co.uk/marketing-services/offline/corporate-identity/" indexed in google at position 5 for a search term, after some research in the keyword planner I decided to change my url to https://www.stauntonrook.co.uk/marketing-services/offline/logo-design/ because I wanted the keyword in the url. I added a 301 redirect to the htaccess and removed the old page from google using webmaster tools fully expecting the new url to drop back in anytime hopefully in a better position than 5, now after a good week or so, still nothing 😞 also doesn't seem to be in any of the other search engines either I've updated the xml too any ideas?
Web Design | | Staunton_Rook0 -
Best Practice For Website Redesign & Migration
Hi, I'm looking to redesign my current live website to a new Wordpress site using "Studiopress Enterprise Theme". I'm new to Wordpress and therefore will be embarking on lots of testing & development.
Web Design | | Mark_Ch
I do not want to hurt my current live website whilst testing the new Wordpress site. However, it would be nice to bring the test site into the current live environment without changing untold urls, etc. Question
What is the best practice to setup this new Wordpress environment for my domain: www.sampledomain.co.uk How would you restrict Google, Bing, etc from indexing, etc. whilst testing in the live environment. What other consideration should I be aware of Thanks Mark0 -
Does anyone know how much a wordpress site can store (in terms of data) I want to put all my movies on it and use it as a personal global external hard drive! Thanks!!
So basically, I have about 500 GB of movies on my computer and I don't want to buy an external hardrive. I don't want to spend the money A website I could access anytime, and anywhere, without having to carry my external with me everywhere I go. Thanks in advance for any help/ references.
Web Design | | TylerAbernethy1 -
Should the parent directory of the main site-navigation be clickable or not?!?
Highly discussed in our team is the question: Should all parent navigation items be clickable, or only the ones that have no child menu appearing on mouse over? At Starwood Germany, we would like to adjust the main navigation for all our websites in order to improve consistency and user friendliness. At the moment, most of our websites feature both clickable non-clickable parent items, depending on whether the items have a corresponding child menu (appearing on mouse over) or not. See example here: http://www.imperialvienna.com/en Some of our team members believe it might be irritating and/or confusing for the user if some items are clickable while others are not. What do you think? Any thoughts and insights would be truly appreciated!
Web Design | | DFM_GSA0 -
Thoughts on my site structure? (And a quick thank you!)
I've learned a lot through this site (and the community built around it) about everything SEO related. It's been extremely helpful in helping us help others to learn that all people (even those with a "disability") deserve respect and integrity. (Wow, that's a lot of helps!) So I wanted to give a quick thanks to everyone on this site who has helped, supported, and encouraged us. We really appreciate it. One thing I've been trying to do on my site is look at my categories and over all site structure. I've pruned a lot of things from the menu bar; pruned away and tightened up the categories, and even rearranged the navigation of the site. As you can see, I have several drop down categories up top. I wanted to see if I could get some feedback on how what I'm doing looks thus far, specifically as it relates to my categories / menus / navigation. Although any feedback you'd like to provide would be more than appreciated. One thing I'm curious about (and not sure how to tackle it) is regarding the top most item in the main menus. For instance you'll see I have a top level category called "Down Syndrome Resources" which takes them to all of the posts in that category. Under that, there is a drop down menus that gives them other categories, and even some pages that fall under the topic of Down syndrome resources. I'm not sure if people would know the top most item is a link, or just look at the ones below it. (If that makes sense.) (On a side note I have therapy as a category as well as parenting, the truth is those could all be sub-categories I guess since everything on my site pretty much could fall under "down syndrome resources." Maybe this is a huge FAIL I made when setting up my categories.) I'm also not sure if I should use some sub-categories as well. For instance I have a main category for Therapy. Under that I have posts about speech therapy, physical therapy, and occupational therapy. Right now they are all grouped into therapy. Do you think I should use sub-categories on those 3 terms, leave as is, or perhaps another option? Another question I have is regarding landing pages. It seems like I need to have a landing page for my top "key words." For example therapy. Now if you visit my /therapy you get the category index page, not a "landing page." Same would go for the sub-categories if I were to create them. So I'm not sure if I should make a new post or page naming it something else (maybe "Down syndrome therapy" another named "Down-syndrome-physical-therapy" etc) or something else. (Although therapy isn't really the keyword I want to rank for, I'm thinking more along the lines of children therapy, pediatric therapy, therapy for children with Down syndrome, etc. So maybe I need to rename my categories? I was going for shorter names, so I very well may have done this incorrectly.) All of these questions are things I'm not to sure about, so I'd appreciate any feedback or advice you can give me. And since I'm learning, I could be doing things wrong that I don't even know to ask. So feel free to tell me what you see that's wrong, you won't hurt my feelings. I promise. 🙂 Thanks in advance.
Web Design | | NoahsDad0 -
Google fails to pick out the correct URL of the story
Hi , I have a page with many news storeys on it. Google craws the page but it picks up a more general url even though I've embedded the direct URL within anchor tags around the headline . The snippet below got linked by Google to http://www.irishnews.com/ Any idea how i can get Google to pick-up http://www.irishnews.com/news.aspx?storyId=1180708 would be very welcome Peter Quinn: Family made scapegoats of financial crisis News Peter Quinn: Family made scapegoats of financial crisis THE Quinn family have been made scapegoats of the financial crisis surrounding the former Anglo Irish Bank, tycoon Sean Quinn's brother Peter claimed yesterday.Peter Quinn, a former president of the GAA, said hi read more»
Web Design | | Liammcmullen0 -
What Shooping Cart To Use?
Hi Any recommendations on shopping carts? I’m looking for something pretty cheap, not over $150 a month. But I don't want to sacrifice quality to save on loose change. Any suggestions?
Web Design | | wayne10 -
Considering site navigation options
I am working on a site redesign and re evaluating concepts I haven't thought about for a few years. I generally see site navigation that is either "top-down" or "left bar". Top down navigation normally uses the left nav. for search refinements. The benefit of top nav. is that it clears up the center of the page for non navigation content. The drawback is that you can't fit as many categories in a top nav. Left side nav. can hold a long list of categories, but subcategories are often in the center of the page. In the past, I have preferred to use left nav. with a multi level scroll over search refinement. I believe this allowed users to get to their destination page with fewer clicks. (I have always believed that every required additional click causes lost customers). I also believe that this has caused me to get more juice flowing to deeper pages on sites and better long-tail conversion. This means I have had pages with a LOT of links. With this method, I have tightly controlled my categories. What on other sites are often dynamic search refinements, are on my sites additional categories. I am considering making a site with a top down navigation system. I like the additional screen space in the center I get to work with. Is my assumption about pages created by search refinement wrong? Is it ok for SEO to have a left nav that has a bunch of search refinements that are dynamically created?
Web Design | | EugeneF0