.htaccess file adjustment not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Pierre M.

Re: .htaccess file adjustment not working

Post 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.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: .htaccess file adjustment not working

Post 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).
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Locked

Return to “CMSMS Core”