How many times you begin programming your website in a subfolder named /joomla or /wordpress or /gallery?
Once everything is finished and tested, why not leaving it in its place and having your domain “pointing” to that subfolder?
It’s very simple,you just have to edit .htaccess file, normally placed in your root directory and usually empty.
It’s important to back it up before modifying it in case your server falls down to the floor :-O
Example: your domain is called www.domain.com and you have your wordpress installed in the /worpress folder. Edit .htaccess file and insert the following code:
RewriteEngine onRewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ “http\:\/\/domain\.com\/wordpress\/” [R=302,L]
Nevertheless I always recommend to have your CMS (joomla, drupal, mambo, etc) or whatever you installed – wordpress, osCommerce, etc, in your domain root directory.
This post is also available in: Spanish

