Etomite Community Forums: SEO URLs and htaccess - Etomite Community Forums

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

SEO URLs and htaccess Please help me to maximize Google page ranking

#1 User is offline   lloyd_borrett 

  • Etomite Staff
  • Icon
  • Group: Staff
  • Posts: 605
  • Joined: 08-October 04
  • Location:Cranbourne North, Victoria, Australia

Posted 02 June 2009 - 12:39 AM

G'day,

On most of my Etomite based sites I have a .htaccess file with variations of the following in it:
RewriteEngine On
# RewriteBase /~jscubado/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


However, this doesn't solve a problem I'm having.

To improve my search engine rankings, I'd like everyone to be treated as if they came to my web site using a URL including www. That is, I don't want to be seen as splitting my page rank across two domains.

I want it so as if people put in the URL, http://scubadoctor.com.au/service.htm, they will get the URL http://www.scubadoct....au/service.htm

Can anyone help me to create a .htaccess file that achieves this?

Best Regards, Lloyd Borrett.

#2 User is offline   mikef 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,546
  • Joined: 30-August 05
  • Gender:Male
  • Location:Cheshire, UK
  • Interests:Photography, Gardening for Wildlife

Posted 02 June 2009 - 08:31 AM

add something like this ...

Quote

#
RewriteCond %{HTTP_HOST} !^www.roguegenecollective.com$ [NC]
RewriteRule ^(.*)$ http://www.roguegene...llective.com/$1 [L,R=301]
#


#3 User is offline   lloyd_borrett 

  • Etomite Staff
  • Icon
  • Group: Staff
  • Posts: 605
  • Joined: 08-October 04
  • Location:Cranbourne North, Victoria, Australia

Posted 02 June 2009 - 10:21 AM

I've used additional lines similar to that to solve the probelm for forums etc.

But I haven't been able to get it to work while still maintaining the use of user friendly URLs within Etomite.

Cheers, Lloyd Borrett.

#4 User is offline   mikef 

  • Loves Etomite Forums!
  • PipPipPipPip
  • Group: Member
  • Posts: 1,546
  • Joined: 30-August 05
  • Gender:Male
  • Location:Cheshire, UK
  • Interests:Photography, Gardening for Wildlife

Posted 02 June 2009 - 03:20 PM

Here's a longer version of my .htaccess
# URL rewriting for Etomite CMS
#
RewriteEngine On
#
RewriteCond %{HTTP_HOST} !^www.roguegenecollective.com$ [NC]
RewriteRule ^(.*)$ http://www.roguegenecollective.com/$1 [L,R=301]
#

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# rewrite old gallery names
RewriteRule ^Gallery54.html$ /gallery-mike-finley.html [L,R=301,QSA]
# a whole load of these!

#remap generated gallery and image names
#some more rewrite rules with complex pattern matching very specific to this site

# and then the standard etomite one
RewriteRule ^(.*)\.html$ index.php?q=$1\.html [L,QSA]
#
# and a whole load of other stuff not relevant to this


I do recall it took me a few tries to get something that worked, but i don't recall what the problems were.
This is working with friendly URLs, and with some more complex URLs (for the galleries and images) generated by snippet code. see the Rogue Gene Collective website

#5 User is offline   lloyd_borrett 

  • Etomite Staff
  • Icon
  • Group: Staff
  • Posts: 605
  • Joined: 08-October 04
  • Location:Cranbourne North, Victoria, Australia

Posted 02 June 2009 - 06:58 PM

Thanks. That put me on the right track and I think it's now working properly.

Cheers, Lloyd Borrett.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users