04 November 2010

Set Folder Name to be working as Primary Domain Name

To make a new folder as the default domain name , you need to write some code in .htaccess file

For example :
if your domain name is www.yourweb,com
and you want to set a folder named ver1 as primary directory ,
then you need to write some code in .htaccess file to redirect to your ver1 folder as primary domain.

To do this , create a file names .htaccess in the public_html/ directory .
Write the following code in .htaccess file .
Change <DOMAIN> to your domain name .
Change <SUBDIRECTORY> to the path of that folder you like to set to be primary directory.

-------------------------------------------------------------------------------------
.htaccess
-------------------------------------------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} <DOMAIN>
RewriteCond %{REQUEST_URI} !^/<SUBDIRECTORY>/(.*) [NC]
RewriteRule ^(.*)$ /<SUBDIRECTORY>/$1
-------------------------------------------------------------------------------------


This code after changing will look like this :
-------------------------------------------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} www.yourWebsite.com
RewriteCond %{REQUEST_URI} !^/ver1/(.*) [NC]
RewriteRule ^(.*)$ /ver1/$1
-------------------------------------------------------------------------------------

(If you found this article useful then share with your friends.)

03 November 2010

Changing the title of the page in joomla

joomla
To change the Title of the page viewed on the top of the browser, you need to follow this steps:
  1. Go to Admin of Joomla ,
  2. Browse Menus , then Main Main ,
  3. Select Home
  4. Look for tab : Parameters System
  5. Under the title : Page Title , write your desired title.
Done .

For more information, visit Joomla.org

(If you found this article useful then share with your friends.)