The Joomla! Forum ™






Post new topic Reply to topic  [ 25 posts ] 
Author Message
PostPosted: Fri Nov 30, 2007 2:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
Full title: "How to remove "WWW" from your Domain Name and why it matters"

Description
Quote:
Read information on the No-WWW website to learn why it's important to not
use the WWW portion of a domain name.

Explain how to use an .htaccess redirect command to redirect all
http://www.example.com traffic to example.com using this code (instructing the
reader to replace example.com with their domain name.)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]

Note: This .htaccess method of redirection requires Apache Mod-Rewrite
module enabled.

Finally, example how to define 'preferred domain' using Google Web Master
Tools and why that matters.


I am a senior at my local public high school. I have taken computer related classes throughout my high school career and have completed the AP Computer Science curriculum (A and AB). While I do meet the requirements for helping out with coding related tasks, I chose to start with this simple yet interesting task because this is my first time contributing to a large open source project. I found this interesting because I do not know how to complete the task described above but would like to learn how to do this. I hope to accomplish this quickly and move on to other more challenging tasks. I have used a lot of things created by the open source community and I am glad to finally have the opportunity to give something back.

I do not have any questions because this task is very straightforward.


Google Task
[me=AmyStephen]Changed subject slightly for sorting all threads to match against Google resource  :)[/me]


Last edited by AmyStephen on Wed Dec 19, 2007 4:10 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Nov 30, 2007 2:46 am 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Very cool, theoclymenus! Welcome to Joomla! We are so pleased that you are willing to contribute to our community. This information will be helpful to people all over the world, so your efforts will be put to good service.

Do not hesitate to ask questions and request feedback from the community. We are here to help you be successful with your task.

Good luck with the contest!
Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Sat Dec 01, 2007 7:57 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
I believe that
Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]


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


because we must
Quote:
redirect all http://www.example.com traffic to example.com
(Class B) not redirect example.com to http://www.example.com (Class A).

Was the issue incorrect? Do you want Class A compliance instead?


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 7:01 am 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
GHOP Contestants Please Read: Task Process Start to Finish for important updates on the contest.

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Tue Dec 11, 2007 5:07 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jul 18, 2006 3:55 pm
Posts: 1028
I'd be happy to help / review / mentor this project if needed.

_________________
The best-selling Joomla book: http://JoomlaExplained.com
Online and classroom Joomla training: http://OSTraining.com


Top
 Profile  
 
PostPosted: Wed Dec 12, 2007 6:47 am 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Excellent, Steve, thanks so very much!

It looks like there is an unanswered question in post 2 - if you could help with that, it would be very much appreciated.

theoclymenus - Steve is *the* SEO expert in all of Joomla! land, and also, a really nice guy. You are in good hands.

If you would please update us on your project status, it would be appreciated. We would like contestants to check in with us, every few days, and apprise us of your status and see if we can help out.

Now that you have Steve in your court, you are in very good hands!

Thanks!
Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Wed Dec 12, 2007 4:46 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jul 18, 2006 3:55 pm
Posts: 1028
Thanks Amy, for the intro and kind words

Hi theoclymenus

Please feel free to PM with any questions or post what you have here.

_________________
The best-selling Joomla book: http://JoomlaExplained.com
Online and classroom Joomla training: http://OSTraining.com


Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 4:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
Thank you alledia, I will post the completed work for review shortly. I apologize for the delay in replying.

----EDIT----
File has been attached for review.


You do not have the required permissions to view the files attached to this post.


Last edited by theoclymenus on Sun Dec 16, 2007 5:57 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 7:40 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Looks good to me - very straightforward, to the point, easy to understand and do. I would add a sentence that doing this can be helpful to your Google Page Rank (GPR), as well.

Will wait to hear Steve's feedback, as well.

Thanks!
Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 8:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
modified the document to mention how the preferred domain affects the Google Page Rank and added a note telling the reader that they should replace "example.com" with their domain name.

----EDIT-----
Request Final Review


You do not have the required permissions to view the files attached to this post.


Last edited by theoclymenus on Sun Dec 16, 2007 8:07 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 8:33 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jul 18, 2006 3:55 pm
Posts: 1028
Hi theoclymenus

Good work :)

Some suggestions:

1) Mostly you've written very clearly, but it might be better (as this is a newbie guide) to write the first paragraph more simply and with more explanation. I'm not quite sure I understood the "why?"
This post has some useful ideas: http://www.mattcutts.com/blog/canonicalization-update/

2) Same with the next part where you say "This method requires Apache Mod-Rewrite module enabled." Can newbies easily check this?

3) For what its worth ... Google understands the redirect well but Yahoo and MSN often ignore this and keep indexing the non-www version

_________________
The best-selling Joomla book: http://JoomlaExplained.com
Online and classroom Joomla training: http://OSTraining.com


Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 8:36 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Thu Nov 29, 2007 9:37 pm
Posts: 403
Location: Minnesota, USA
The first letter is in Halvetica, the rest is in Times!

(You also might want to capitalize the n in "note:")


I have a question.  Wouldn't it just be easier to go to your domain host and make WWW a CNAME redirecting to your non-www'ed site?

Great work!

_________________
Leonard Bernstein for President -
Web Development Services: www.BernsteinForPresident.com
My Software Freedom Blog: Trombonechamp.Wordpress.com


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 12:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
ok, incorporated the suggested changes. Thank you for your help so far.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 12:19 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jul 18, 2006 3:55 pm
Posts: 1028
Thanks theoclymenus

Great job!

Just two more things from me then I'll turn you over to Amy:

1) The first section still seems too technical for a noobie guide. Words such as protocol, prepends, SMTP, subdomain and so require quite a bit of web knowledge.

Maybe rename your section "Why remove “WWW” from your Domain Name?" to "Technical reasons why you should remove “WWW” from your Domain Name" .

Then add a brief introduction without any technical language (just words of one syllable :) )

2) "In addition, defining a preferred domain can be helpful to your Google Page Rank." Why?

... because you won't have two copies of the same page indexed. Each page is only able to pass a fixed amount of PR. If it is passing PR to both the non-www and www versions of your domain, both pages will only get half the correct amount. If the www redirects to the the non-www, the non-www will get all the PR.

_________________
The best-selling Joomla book: http://JoomlaExplained.com
Online and classroom Joomla training: http://OSTraining.com


Last edited by alledia on Mon Dec 17, 2007 12:21 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 1:43 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
alledia, thanks for your help. I made the necessary adjustments and hope this what you envisioned.


You do not have the required permissions to view the files attached to this post.


Last edited by theoclymenus on Mon Dec 17, 2007 1:46 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 2:19 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Tue Jul 18, 2006 3:55 pm
Posts: 1028
Great work - theoclymenus.

Theres a couple of typos you need to fix (necesssay, convient) but otherwise I'll turn you over to Amy and others for feedback.

_________________
The best-selling Joomla book: http://JoomlaExplained.com
Online and classroom Joomla training: http://OSTraining.com


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 2:32 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Great, thanks much, Steve!

Theoclymenus - when you have those typos fixed, let us know and we'll get this wrapped up!

Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 3:23 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Support question moved to Joomla! 1.0.x General Administration board.

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 8:05 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
Typos have been fixed :) Please mark as "Solved"


You do not have the required permissions to view the files attached to this post.


Last edited by theoclymenus on Mon Dec 17, 2007 9:30 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Dec 18, 2007 3:00 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
url --> URL

Not certain why this is included? I would remove it for clarity.
Quote:
A more technical explanation is that the “WWW”  is an abbreviation for “World Wide Web”, a complete set of documents residing on all Internet servers that use the HTTP protocol. All popular Web browsers assume the HTTP protocol. The browser software prepends the 'http://' onto the requested URL and automatically connects to the HTTP server on port 80.


Slight mod to next sentence:
Quote:
Web servers should display their pages though the main domain name, (insert) i.e., www, (end insert) unless a particular subdomain is required; the use of the www subdomain is simply redundant.


Change someone@somesite.com to someone@example.com (example.com is the WC3 reserved domain name for examples about domains.)

Change: How do you do this? to: How do you remove "WWW" from your domain name?

Change: Create this file if it does not exist.  To: If you do not have an .htaccess file, rename the htaccess.txt delivered with Joomla! to .htaccess

Remove: If you do not have this access, simply continue.

Add this statement after the error code 500 line: If your website is hosted and you have problems, talk to your web host about your Apache configuration and ask if mod_rewrite capability is enabled.

I'll look for your changes!

Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Tue Dec 18, 2007 9:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
Thank you for all your help and support. Changes have been made. :)


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 6:23 am 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Remove their:
Web servers display their pages though the main domain

Space after file:
file(/etc/httpd/conf/httpd.conf)

Space after Rank:
Google Page Rank(GPR)

Really good - with these three changes, I accept as complete.

Thanks!
Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 11:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
Done :)


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 3:07 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4785
Location: Toronto, Canada
I approve.

This thread will be marked "Solved." Please post your work to your
Google Task page. After you have done so, we will close the task and
you will be free to choose another task, if you desire.

Ian


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 8:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 30, 2007 2:11 am
Posts: 11
ok, thank you, the work has been posted.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group