Page 1 of 1

Re: .htaccess file adjustment not working

Posted: Fri Apr 06, 2007 8:42 pm
by Pierre M.
Hello,
lexscripta wrote: After looking at the net on the topic of "diluted page rank", it appears that www.mysite.com and http://mysite.com are different to google.
They are not only different to Google. There *are* different, as Alaska is different from the entire US.
Also, this www.mysite.com and www,mysite.com/index.html can dilute page rank.
Not if / 302 redirects to /index
So I tried this:

Code: Select all


#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# Make sure you have Options FollowSymLinks
# and Allow on

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

#This stuff rewrites index.html to just 
#www.mysite.com
RewriteCond %{REQUEST_URI} ^/index.html [NC]
RewriteRule ^/index.html$ / [R=301]

RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,L]

and it doesn't appear to be solving this issue - CMSMS 1.02

Anything wrong with the .htaccess file?

Lexscripta
I'd switch the rewrite rules : firstly, canonical hostname.
http://httpd.apache.org/docs/2.2/rewrit ... onicalhost
Then, the / 302 redirect.
Then, CMSms manual on pretty URLs.
May be RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA] depending on your "page extension".
And don't forget to upgrade asap your 1.0.2.

Pierre M.

Re: .htaccess file adjustment not working

Posted: Fri Apr 06, 2007 10:53 pm
by kermit
this doesn't fix your .htaccess issue ...

but you can tell google which way you swing... www.yoursite.com or just [iurl=http://yoursite.com]yoursite.com[/iurl]

see google webmaster tools (google acct required) or google help:preferred domain (if you don't wanna login).