ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

123 Reg - getting it to work without WWW at start of URL?



  Mk2 Golf GTI
Hi guys,

I've just uploaded my iWeb site via mobileme but i'm having trouble getting it to work without www at the start, which is annoying.

I read somewhere about altering the DNS and having an asterisk at the start.

I configured the first one to get it working as 'www CNAME web.me.com.' and the second as '* CNAME web.me.com' which I thought would make it work, but it hasn't.

Any ideas what i need to do? Cheers

www.fivewaysfitness.com is the new site
 
If you have access to the .htaccess file in your html root (where your site is) put this rule in

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

Or if you want to have www added use

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
 
  Clio Mk2 Phase 1
Beat me to it lol.

Not a bad look on the website, if you are going to evolve it in any way then look into HTML & CSS for beginners and then move on to HTML5 & CSS3 for projects!
 
  Mk2 Golf GTI
If you have access to the .htaccess file in your html root (where your site is) put this rule in

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

Or if you want to have www added use

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

This sounds good, but I don't understand!

Would I add the changes in iWeb?

Thanks Logie, I just wanted to get something up real quick so just messed around a little bit with the template on iWeb but I am planning on making something better as I get to learn the program more.

Cheers
 


Top