Quote:
Originally Posted by turbosatan
basically add this
Code:
Options +FollowSymLinks
AllowOverride FileInfo
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
if you already have rewriting on then you may already have the
Code:
Options +FollowSymLinks
RewriteEngine on
in which case just add
Code:
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
on the end of whatever is in there
|
Thanks for the reply, as I already said I fix the problem.
I ended up editing the .htaccess file.
I decided to redirect all the non-www addreses to www. So in the .htaccess file located in the root of my site I added the following
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]
That redirected all non-www addresses to www.
All exept one! mysite.com/forum was still directing to the non-www address. This was happening because I had vbSEO installed. So note that if you have vbSEO you have to edit both .htaccess files. The one located in the main root and the second one located inside the forum directory.
So I solve this by editing the .htaccess file within the forum directory as well.
In the very top I added the following code:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Now everything works smoothly

:up:
Quote:
Originally Posted by sllik
I think there is actually a better way than editing the .htaccess file. In the facebook app settings under the Connect tab set the Base Domain setting.
|
I tried this, with no luck at all... But my problem was solved as I describing above.