tags:

views:

37

answers:

1

facebook.com has a mobile version that is m.facebook.com i want to do this with my site. (suppose my site name is erajshahi.gov.bd , now pls tell how can i create a mobile version for my site , the url will be look like m.erajshahi.gov.bd

Do i've to learn WML to do this?

A: 

The subdomain m.facebook.com has nothing to do with WML. It's a certain server config that has to be done.

Basicaly, there's two things you need to do, presuming you have access to the server config and that you are running Apache as a HTTP server:

You need to set up a canonical name, or short CNAME, in your DNS records. You need to add a line that looks like this:

m    IN    CNAME    yoursite.com

You need to add a virtual host to the HTTP server configuration. Something like:

<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /www/docs/mobile
        ServerName m.yoursite.com
    </VirtualHost>

Things are a bit more complicated than that, because your domain name is actualy gov.bd and you are already a subdomain of it.

You should read more and try to understand what a CNAME is and how to set up virtual hosts for Apache.

For more problems that involve server configs, you should check out serverfault.com. stack*overflow* is for programming questions.

evilpenguin