I have a website and I'm trying to accociate two domain names with my site. For example my site name in http://www.sitename.com . I would like to create two diffrent domain name for this site like
1. http://www.sitename.com/protected
2. http://www.sitename.com/public

If we type both above urls it will access same drupal folder and same databse.
Is it possible? any module available fro that?

Comments

David.W’s picture

ehhh.. if you want it to be the exact same site, you might want to look at the options of your provider.

You can forward a domain name to another domain. For example, if you have a site like http://192.168.1.1.com and you have a domain name like www.examplesite.com you forward this domain to the 192 one.

nirmal_george’s picture

Thanks... Can we do it from developers side like changing configuration in settings.php, .htaccess files..?

canyonbreeze’s picture

http://httpd.apache.org/docs/1.3/mod/mod_alias.html

You can set up an alias name or use redirects to the same location. Assumes you have access to the server config, not sure if it can be done in .htaccess.

profjk’s picture

You can use domain redirect technique (Google and you get plenty of info) or from cPanel.
However, the the other two addresses would also lead to http://www.yoursite.com
Good luck