www or no www in urls

Filed Under (Facebook, Joomla! 1.0, Joomla! 1.5, Ubuntu) by khawaib on 01-08-2010

Tagged Under : , , , , , , , ,

You can enter your website urls with a www or with no www. Which is better I leave for you to google and find out yourself. Using both is not a good idea as search engines and Facebook will not treat them same and will cause problems.

Solution is to force one of them to be used and not both. So if a users enters http://www.youtsite.com gets to http://yoursite.com and vice versa.

Solutions 1: Using Mod Rewrite
Following code should be placed in htaccess file in root directory of your website.

If your want to http://www.yoursite.com use following code:

<IfModule mod_rewrite.c>
   Options +FollowSymLinks
   Options +Indexes
   RewriteEngine On
   RewriteBase /
   RewriteCond %{HTTP_HOST} ^domain\.com$
   RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
</IfModule>

If your want to http://yoursite.com use following code:

<IfModule mod_rewrite.c>
   Options +FollowSymLinks
   Options +Indexes
   RewriteEngine On
   RewriteBase /
   RewriteCond %{HTTP_HOST} ^www\.domain\.com$
   RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
</IfModule>

Joomla website users:
You can use following free plugin from JED
http://extensions.joomla.org/extensions/site-management/url-redirection/10527

How To Create a Facebook Page

Filed Under (Facebook) by khawaib on 21-07-2010

How to access Faceboo Pages?

You can find Facebook Pages in left column on your Facebook home page when you are logged in. If it is not showing you can click on More link to find it.

Then click on create page link as shown in screenshot.

If you still can not find it Click Here to go directly to Facebook Create Page Screen (Make sure you are signed in Facebook).

Creating a Facebook Page

On Create a Page screen you will be asked to enter various categories of information to input.

You can choose between Official Page or Community Page.

When you create a page you will see URL in Browser address bar for that page. For example

Customized Facebook Profile URL

If you have customised Facebook Page URL then your ID will not show in URL and your URL will be like http://www.facebook.com/USER_NAME instead.

To find your Facebook Page ID from a Customised URL simply click on your profile picture and it will take you to your profile pictures. On profile pictures area you will see your Facebook Page ID in browser address bar.