How to get my pagerank back for joomla site

July 18, 2008 · Filed Under Joomla, SEO - Search Engine Optimization, htaccess · Comment 

I wondered why google is considering http://www.technointellects.com and http://technointellects.com as different sites and rank both the URLs separately

Try this quick test for your web site. Navigate to the two following URL’s:

http://yoursite.com

http://www.yoursite.com

If you can actually have these show up in your browser then you have a problem. What is happening is that Joomla will happily process both URL’s, with and without the www.

“Is that bad?” you now ask.

Actually yes, This meant from Google’s point of view, they were actually 2 different sites and each will get get ranked individually. And one has to face the consequences of duplicate contents!

Thanks to the lots of resourceful sites on the internet which helped me fix the issue real fast

You need to make the following changes in your existing htaccess file or if if you don’t have one yet then need to create one and upload it

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]

Explanation to the above commands

The first line “RewriteEngine On” tells Apache to enable Mod_rewrite - the engine responsible for manipulating URLs.

The second line “RewriteCond %{HTTP_HOST} ^technointellects\.com$ [NC]” looks for when people access technointellects.com. The “[NC]” flag makes the test case-insensitive, so it catches URLs like TechnoIntellects.com.

The third line “RewriteRule ^(.*)$ http://www.technointellects.com/$1 [R=301,L]” redirects technointellects.com to www.technointellects.com with a 301 redirect.

Note, in the Joomla htaccess file the “RewriteEngine On” statement is already there, you don’t need it twice.

Enable Disable register global from .htaccess

July 11, 2008 · Filed Under Linux / Unix Commands, htaccess · 4 Comments 

At times, we need to set register_globals to on or to off and we cannot modify such directive of php from the php.ini for obvious motives.

Then we can plan register_globals to on or off through an entry in the file .htaccess in the following manner.
For on:

php_flag register_globals on

For off:

php_flag register_globals off