.htaccess and redirect to www - Pligg

Hi guys,
I’m having problems with bloggerati.com.au vs www.bloggerati.com.au

I installed Pligg - it has an option in ADMIN->CONFIGURE->LOCATION INSTALLED for the BASE URL which says:

It looks like this should be set to http://www.bloggerati.com.au
value: http://www.bloggerati.com.au

I then edited the .htaccess file - named corrrectly and uploaded as ASCII - eventually. :slight_smile: with :

[i]##### Re-directing Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine on

If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder

RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index.php\ HTTP/

Remove these two lines if you have a sub-domain like http://ashdigg.pligg.com or http://localhost

Keep if your site it like http://www.pligg.com

RewriteCond %{HTTP_HOST} !^www…* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]

Re-directing End #####[/i]

But when you go to bloggerati.com.au it doesn’t divert to www.bloggerati.com.au. And that means that the voting buttons - javascript I guess - give js errors Permission Denied. Stick a www in front and all is good.

I know it’s the coding in the .htaccess file cos I used another persons example and it ended up in a loop.

As you can tell, I’m not a progammer. Is there something I am meant to fill out in the .htaccess? Am I missing a trailing slash? Is there something special about .com.au instead of .com? Any help much appreciated!


I have been searching for around 4 days for an answer - I post here in desperation, then find the answer.

It was the template I’m using - I have to reverse the redirect so it is WITHOUT the www.

So if anyone else searches for keywords such as “Pligg - can’t vote - Yget template” this is the answer.

[i]quick fix posted some time ago in this forum…

set your site base to adress without www

edit .htaccess


RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^/?(.*)$ http://www.%{HTTP_HOST}/$1


Fix trailing slash problem

RewriteRule ^([^.]+[^/])$ http://infoneo.pl/$1/ [R=301,L]

Remove www., always.

RewriteCond %{HTTP_HOST} ^www.infoneo.pl$ [NC]
RewriteRule ^(.*)$ http://infoneo.pl/$1 [R=301,L]

Re-directing End

infoneo.pl change to your site base adress[/i]