Directing Users to Your Mobile Site

October 20, 2011
0 minute read

Your mobile website is designed, published and ready to go. Now what? Nearly 20% of the sites built and beautifully designed on DudaMobile are not redirected from their regular sites.

One of the most important programmatic steps necessary when building a mobile website , is the creation of the redirection that will bring users to your site.

Generally, your regular desktop website will be located at a URL of the form www.mysite.com – and you’ll place your mobile site on the subdomain m.mysite.com. While mobile users could type in m.mysite.com and reach your mobile site, they are more likely to go to the address they know from the desktop web. More importantly, search engines will most often point to the www.mysite.com web address.

There are three ways to go about creating this redirection

  1. On the front-end, using JavaScript.
  2. On the back-end, using whatever programming language used in your site.
  3. On the web server level, if your site is served by Apache, using .htaccess directives.

Whatever the approach, the principle is the same

First: Detect which user agent (web browser) the user is arriving from. If the browser is a mobile browser – that if certain substrings are found within the user agent: iPhone , Android , etc. (lists of these are available via a quick Google search) – you can continue on to the second step.

Second: Redirect the user to the mobile site’s address. Take into consideration whether or not you’d like to forward mobile users arriving at any page of your desktop site to the mobile site, or, alternatively, only those arriving at the homepage. If you choose the former, you’ll then want to decide whether to forward users arriving on a given page onto the parallel page on the mobile site, or simply to the mobile site’s homepage. Obviously, you’ll need to ensure your mobile site’s code is built in such a way that allows for this. If you create your mobile site on DudaMobile, this is all taken care of for you.

Have a Question About Mobile Web Development?

Direct all questions, tips and comments to Shaun Waksman, DudaMobile’s Product Manager. Send him an email at Shaun@dudamobile.com.


Did you find this article interesting?


Thanks for the feedback!
A bunch of colorful logos of AI design tools on a black background
By Renana Dar February 23, 2026
Discover how AI design tools can boost your agency’s efficiency, streamline your design process, and help you deliver high-quality work faster. Explore top AI-powered design tools available now.
Person using a tablet interacting with a large mobile phone interface, surrounded by digital design elements.
By Amy Greene February 19, 2026
Transform your Field Service Management SaaS into a growth engine. Learn how partnering with a professional website builder increases customer retention and unlocks new revenue.
Woman smiling in a live video with interface buttons like hearts and products. Dark background.
By María Vincenzini February 17, 2026
Compare leading tools like Aspire, Influencer Hero, Upfluence, Traackr, and CreatorIQ. See how top platforms help agencies and brands streamline creator outreach, manage campaigns at scale, track affiliates, and prove ROI with real performance data.
Show More

Latest posts