The quickest way to make your site mobile friendly.

Create a mobile version of your site.

1. Login to the root directory of your site (typically the public_html directory) and edit or create the .htaccess file.

 

NOTE: You will need a standalone FTP application, like Transmit, that allows you to view invisible files to view the .htaccess file.

 

2. Paste the following code into your .htaccess file, replacing http://YourDomainGoesHere with the full URL of your site. (example http://www.mydomain.com)

 

#redirect mobile browsers
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
RewriteRule ^(.*)$ http://www.google.com/gwt/x?u=http://YourDomainGoesHere&btnGo=Go&source=wax&ie=UTF-8&oe=UTF-8 [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
RewriteRule ^(.*)$ http://www.google.com/gwt/x?u=http://YourDomainGoesHere&btnGo=Go&source=wax&ie=UTF-8&oe=UTF-8 [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$ http://www.google.com/gwt/x?u=http://YourDomainGoesHere&btnGo=Go&source=wax&ie=UTF-8&oe=UTF-8 [R=301]

 

3. Save the .htaccess file and upload it to the root folder of your site.

 

 

  • 11 Users Found This Useful
Was this answer helpful?

Related Articles

Wordpress: How to make a mobile version of your site.

1. Login the admin dashboard of your Wordpress site, usually found at...

RapidWeaver: How to make a mobile version of your site.

RapidWeaver users currently have a few options for making their site mobile friendly. Themes...

Concrete5 (aka Web Builder): How to make a mobile version of your site.

Plugins (Click on title for more details)c5Touch (Warning: This is an expert level modification...