Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Strange

Status
Not open for further replies.
Joined
Sep 19, 2007
Posts
103
Reaction score
1
Hi, I have a site that for some reason appears to have two url's.
www dot sitename dot com and sitename dot com. Is this normal?
 
If you are a bit techie, or know someone who is, you can edit your .htaccess file to sort this out - so that whether someone types the www or not, it always resolves to the same version

IIRC it's called "canonicalisation" and is recommended by SEOs to avoid possible duplicate content issues

A google for "htaccess canonical" brings up several articles that might be useful

HTH

Cheers, Jon
 
This is the code you need for your htaccess file:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourdomainname\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomainname.com/$1 [R=301,L]

Save it as .htaccess & upload to the root after replacing yourdomainname with your domain name.

Beware to check first & see if there is already a .htaccess file there (select view hidden files in your ftp) - if there is don't upload a new one, you'll need to amend the existing one.
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom