PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : روش قفل کردن WWW در آدرس سایت برای بهبود در سئو و بهینه سازی Learning For Webmasters | Seo



Mohamad
09-29-2011, 04:34 AM
یکی از مهمترین نکات سئو اصطلاحا قفل کردن www روی دامین هست.

حتما تا بحال دیدید که خیلی از آدرس های اینترنتی هم با www ابتدای آدرس و هم بدون www باز میشوند. مثلا هم با http://azardl.com و هم با http://www.azardl.com میتوانید به سایت دسترسی داشته باشید. این یکی از مواردی است که مانع از بالا رفتن پیج رنک سایت و به دنبال آن مانع از افزایش بازدید کننده میشود.
یکی از موارد منفی در الگوریتم گوگل صفحات و مطالب تکراری است. وقتی سایت شما با هر دو این آدرس ها باز میشود از نظر گوگل مثل این است که تمام مطالب و برگه های سایت شما دارای یک کپی تکراری است! و این یعنی مانع در سر راه بالا رفتن پیج رنک سایت شما.
شما باید انتخاب کنید که سایتتون با کدام آدرس باز شود؟! با www در ابتدا و یا بدون www .
تجربه نشان داده آدرس استادندارد برای URL سایت شما آدرس با www است و ما هم آدرس با www را پیشنهاد میکنیم.
روش کار:
- فایل htaccess. را در سرور خود پیدا کنید.
- کد های زیر را در ابتدای این فایل قرار دهید.

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


فایل htaccess. را ذخیره کنید.

با انجام مراحل بالا شما موفق شده اید www را روی دامین خود قفل کنید .




نکته: اگر این کد روی سرور شما کار نکرد علامت های [NC] $ و را از خط دوم حذف کنید.

نکته: قبل از انجام هر تغییری یک کپی از فایل htaccess. بگیرید تا در صورت خراب کاری بتوانید جبران کنید.


توجه: دقت کنید که بجای azardl در کد باید نام دامین خود را بنویسید.

Mohamad
09-30-2011, 02:19 AM
به نام خدا
بحث مفصلی را با مدیر یکی از سایت های معروف و البته تازه کار در ضمینه سئو سازی را در این رابطه داشتیم .
مدیر اون سایت دو تا مقاله از سایت های گوگل و یک سایت معروف دادند که بنده هم لینک اون مقالات را اینجا میذارم و هم در پست های بعد به دلیل اینکه خدای نکرده فردا این سایت ها هم ممکنه به عذاب بی سوادان دچار بشند و چون انگلیسی هستند فکر کنند ناسزا گفتن این ایادی استکبار جهانی ... ، متن اونها را هم کپی خو.اهم کرد .


http://www.ragepank.com/articles/www-or-non-www/
&
http://www.google.com/support/webmasters/bin/answer.py?answer=44231

Mohamad
09-30-2011, 02:21 AM
http://www.ragepank.com/headings/www-or-non-www.gif



<< Getting the most out of tags (http://www.ragepank.com/articles/optimize-tags/) Fixing crappy landing pages - illustrated >> (http://www.ragepank.com/articles/fixing-crappy-landing-pages/)

Jan 19, 2008
The local PHP users group has been having an interesting discussion on the use of www vs non-www in a domain name. The discussion has raised some interesting points.


Everybody agrees that both should work - it's immensely frustrating when you type in "domain.com" and you get an error message. There are still a number of big websites that get this wrong.
The preferred method of handling this is for one domain to do a 301 (permanent) redirect to the other.
Google and most search engines have no particular preference for which one you choose to go with.


If you have been quietly redirecting between www and non-www for years, then none of this is new.

The argument for www


I'm going to make my case for www.domain.com being the preferred version. It comes down to 3 main reasons.

Better handling in regexes


If a forum / email client / whatever is configured to automatically turn plain text that looks like a URL into a working link, more often than not they will stumble on "domain.com" but be fine with "www.domain.com" - of course "http://domain.com" is usually fine too. It really irks me when I get a "domain.com" in an email that I have to copy-paste to be able to visit. Much nicer when it's a clickable link.

As I posted the above paragraph into the Google Groups system (in plain text), it came back with the www. versions clickable and the non-www versions non-clickable - which basically proves the point.

Better for type-in traffic


Something which had never occurred to me was highlighted by Chris Hope, in his article on use of www in web addresses (http://www.electrictoolbox.com/use-of-www-in-website-addresses/). The concept is that browser address bars will autocomplete more reliably on www websites. To get "http://www.yahoo.com" to autocomplete, you can start typing either "www.ya..." or "ya...". However, to get "http://digg.com" to autocomplete, you must start typing "di..." - typing "www.di..." will not initiate the autocomplete.

Convention + User expectation


I'm remembering back to the days where you would receive an email with an attachment called "www.free---.com" - people would click the attachment with the expectation of getting a website, but the attachment was actually a Windows executable file with some nasty virus inside.
To most people, something starting with "www." just looks like a web address. Or as was pointed out in the discussion...

Nick Taylor said...
WWW acts as a human-readable bit of punctuation - it means "what follows is a web address". It's a little bit of meta-data.


This is especially important in printed media - having the www makes the message that little bit clearer, even if it's 4 characters longer.

The argument for non-www


It's shorter and easier to say. Have I missed anything?

Mohamad
09-30-2011, 02:21 AM
Preferred domain (www or non-www)


The preferred domain is the one that you would liked used to index your site's pages (sometimes this is referred to as the canonical domain). Links may point to your site using both the www and non-www versions of the URL (for instance, http://www.example.com and http://example.com). The preferred domain is the version that you want used for your site in the search results.
If you see a message that your site is not indexed, it may be because it is indexed under a different domain. For example, if you receive a message that http://example.com is not indexed, make sure that you've also added http://www.example.com to your account (or vice versa), and check the data for that site.
Once you tell us your preferred domain name, we use that information for all future crawls of your site and indexing refreshes. For instance, if you specify your preferred domain as http://www.example.com and we find a link to your site that is formatted as http://example.com, we follow that link as http://www.example.com instead. In addition, we'll take your preference into account when displaying the URLs. If you don't specify a preferred domain, we may treat the www and non-www versions of the domain as separate references to separate pages.
It may take some time before you see this change fully reflected in our index. All pages that currently display the non-preferred version of the URL in the index will remain in the index that way until we refresh our indexing of those pages.
To specify your preferred domain:


On the Webmaster Tools Home page, click the site you want.
Under Site configuration, click Settings.
In the Preferred domain section, select the option you want.

You may need to reverify ownership of your sites. Because setting a preferred domain impacts both crawling and indexing, we need to ensure that you own both versions. Typically, both versions point to the same physical location, but this is not always the case. Generally, once you have verified one version of the domain, we can easily verify the other using the original verification method. However, if you've removed the file, meta tag, or DNS record, you'll need to repeat the verification steps.
Note: Once you've set your preferred domain, you may want to use a 301 redirect (http://www.google.com/support/webmasters/bin/answer.py?answer=93633) to redirect traffic from your non-preferred domain, so that other search engines and visitors know which version you prefer.

Mohamad
10-11-2011, 04:06 AM
خوب اگر کسی خواست بدون www آدرسش را قفل کنه هم میتونه از این کد استفاده کنه


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.azardl.com [NC]
RewriteRule ^(.*)$ http://azardl.com/$1 [L,R=301]



فایل htaccess. را ذخیره کنید.
با انجام مراحل بالا شما موفق شده اید www را روی دامین خود قفل کنید .


نکته: قبل از انجام هر تغییری یک کپی از فایل htaccess. بگیرید تا در صورت خراب کاری بتوانید جبران کنید.

توجه: دقت کنید که بجای azardl.com در کد باید نام دامین خود را بنویسید.




اما یک نکته را هم برای وردپرس بگم که نیازی به این کارها نداره و راحت میشه از قسمت :
تنظیمات
همگانی
آدرس سایت را داد .