1. Trang chủ
  2. » Công Nghệ Thông Tin

Joomla cho người mới bắt đầu part 32 ppt

10 197 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Chapter 12 [ 317 ] You'll work with the same set of keywords in the arcle metadata too. We'll get to these in the secon Add meaningful metadata. 4. The images: Explain what they're about Search engines scan and analyze text, but they can't interpret images. To search engine spiders, an image is just a meaningless data le. This means you can help search engines by using disnct lenames for any image you use. Moreover, when inserng an image in the Joomla! arcle editor, add a specic Alternate Text. Here's what the Alternate Text box looks like on the Joomla! Content Editor Image Editor screen (see also Chapter 10 to read more about this editor): This Alternate Text (or "alt" text) is the short descripon that shows when the image itself isn't displayed for some reason. You might also want to add a similar descripon to the Title eld (under the Advanced tab). This tle text pops up when the visitor's mouse pointer hovers over the image: Download at Wow! eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 318 ] Update articles regularly Try to regularly add quality content to your site. Adding a few pages every week will make both your visitors and search engines happy. Search engine spiders visit your site regularly; aim to have some new content added when they come around. This doesn't mean that the bigger the site is, the beer your search results will be; it's good pracce to delete or archive outdated content. More on SEO-aware wring Of course, creang great content isn't a Joomla!-specic art. If you want to read more on SEO-aware wring, there are many resources on the Web. To get a clear over view of the basics, download Google's Search Engine Opmizaon Starter Guide from www.google.com. Sites such as Copyblogger.com (try searching this site for "SEO Copywring") oer a number of ps on wring eecve copy for the Web. Add meaningful metadata Up to now, we've focused on actual content. You've seen how you can opmize arcles to present their content in a clear and well-structured way. However, web pages also contain informaon that's not shown to site visitors, but is aimed specially at search engine robots: metadata. Metadata is informaon about the contents of the HTML document hidden in the documents source code. Browsers (and search engines) will read it; humans won't know it's there (unless they specically look for it by selecng the View Source opon in their web browser). By default, your Joomla!-powered site will only contain some dummy metadata, consisng of a short descripon and a few Joomla!-related content keywords. Let's change these to something more appropriate. Time for action – personalize the site metadata You'll nd the controls for opmizing your site for search engine trac in the backend Conguraon Panel. First, let's add some global keywords that characterize the site's content: 1. Navigate to Site | Global Conguraon. On the Site tab, there's a secon called Metadata Sengs. Download at Wow! eBook WWW.WOWEBOOK.COM Chapter 12 [ 319 ] 2. Change the Global Site Metadata Descripon default text to a short summary of the content of your website. In our example, we'll enter SRUP is the inter- naonal Society For the Reappreciaon of Ugly Painngs. 3. In the Global Site Meta Keyword text box enter a few keywords that match the con- tent of your website. Make sure to use the words and synonyms the visitor might use to search for your site's contents. You'll probably use a few words that are also part of the site descripon. In our example, we'll enter these keywords: ugly painngs, bad painng, bad art, SRUP, Society For the Reappreciaon of Ugly Painngs. The Metadata Sengs should now look similar to the following screenshot: Download at Wow! eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 320 ] 4. Leave Show Title Meta Tag and Show Author Meta Tag set to Yes. This way, Joomla! will not only add global (site-wide) meta keywords to the pages, but it will also include the metadata keywords from the individual pages. You can add this Arcle Metadata for each individual arcle in the arcle editor; we'll see how this works later in this chapter. 5. Click on Save and click on Preview. What just happened? By entering metadata for your site you've added some global keywords and descripve text to your site. This informaon will be included in every page of your Joomla!-powered site. Metadata will remain invisible to your visitors, but search engine spiders use this informaon when crawling your site. Although it seems search engines don't give much weight to meta keywords any more when indexing sites the site descripon is sll very important (and will show up when your site appears on a search results page). However, don't expect overnight success. You won't instantly see the eect of your metadata changes in search results, but in due me search engines should pick it up and use it to analyze your site's contents. They'll display the site descripon metadata in the search results. If you need to convince yourself, just google for the default descripon text in the Joomla! demo site (Joomla! - the dynamic portal engine and content management system). You'll get a huge list of results, all links to Joomla!-powered websites that haven't yet personalized their global site descripon: Download at Wow! eBook WWW.WOWEBOOK.COM Chapter 12 [ 321 ] Have a go hero – nd metadata to t your site All that Ugly Painng business is okay for the example site, but what kind of metadata descripon and keywords would t your parcular site best? First, do a lile research and use the Google keyword tool menoned before (or a similar tool) to get a few keyword ideas. Another great way to get going is to have a look at how others do it—what kind of keywords and descripons do similar sites use? Of course you won't copy that text (as that will be of lile use in making your site a unique source of informaon), but it may inspire you. Here's how you can explore metadata; point your browser to a site you'd like to explore and select the opon to look under the hood of the current website—it's probably called something like View Page Source. A new browser window or tab will open showing the HTML source code of the current page. You'll nd the meta tags in the <head> secon of the document. The description tag looks like this: <meta name="description" content= "A few lines explaining what the site is about">. The keywords tag looks like this: <meta name="keywords" content= "first keyword, second keyword, and so on"> Exploring a few examples of websites oering the same type of content will get you going—and make it easier to decide whether you want to do things just as they do, or dierently. Entering metadata for individual articles You've set the metadata for the website in the Global Conguraon screen. This is great to help search engines to understand what your site is about. However, it's a good idea to add keywords to individual arcles as well as this will help search engines analyze and rank individual pages on your site. Download at Wow! eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 322 ] Time for action – add metadata information for an article To see h ow it's done, let's open an exisng arcle in the ar cle editor and enter some metadata: 1. Navigate to Content | Arcle Manager and select any arcle. Click on Edit. In the following example, we've opened the SRUP Welcomes New Members arcle. 2. Below Parameters (Arcle) and Parameters (Advanced), you'll nd a panel called Metadata Informaon. Click on the name (Metadata Informaon) to open this panel and enter the appropriate informaon. 3. In the Descripon box, ll in a short one-sentence summary of the arcles content. In this example, we've entered Feel free to join SRUP, the Society for Ugly Painngs enthusiasts. 4. In the Keywords box, add a few content keywords. In this example, we'll enter SRUP Membership, Ugly Painngs Membership, Member, and Join SRUP. 5. Click on Save. No need to Preview—metadata is invisible on the frontend of the site, remember? Download at Wow! eBook WWW.WOWEBOOK.COM Chapter 12 [ 323 ] What just happened? You've set the metadata for the website and added some keywords for an individual arcle. You'll usually enter keywords and a descripon for each individual arcle as you write the arcle, but it's of course also possible to edit a bunch of arcles aerwards. It's good to have a descripon for every page. Although there's some discussion whether search engines will aribute much value to keywords, they do add to the meaningful content of your web page. In this example, we've le the Robots and Author text boxes of the arcle metadata secon blank. In the Robots box, you can enter oponal instrucons for robots (the programs that search engines use to crawl your site). You can tell them not to index this page or not to follow the links from this page. In the Author text box you can enter an arcle author name to be added to the page metadata. Normally, this won't be of any importance for your search engine visibility. Have a go hero – explore the art and science of metadata Joomla!'s metadata capabilies are ne, but if you really want full control and tweak your pages for opmal search engine visibility, there's a must-have metadata extension. It's called the Joomlatwork SEO patch for Joomla!. The patch provides you with addional elds, both in the global conguraon and in the arcle editor, allowing you to customize the page tle, the page metadata, and more. Go to www.joomlatwork.com to read more about the SEO patches capabilies and to download it. Don't forget to choose the perfect site name One of the rst things you do when you set up a new site is entering a name for it. You'll be prompted to enter a name when installing Joomla!; aer that, you can change this text in the Global Conguraon screen. It's a good idea to think very carefully about the Site Name as this will appear in the browser tle bar of the home page. Download at Wow! eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 324 ] In the case of the example site, it's beer to have some meaningful words here rather than just the mysterious abbreviaon SRUP. You can change the site name as follows:  Navigate to Site | Global Conguraon.  In the Site Sengs secon, enter an appropriate name in the Site Name box. In this example, we've entered SRUP – Ugly Painngs Society. This is descripve and not too long; it won't take up the full browser tle bar.  Click on Save and click on Preview. The new name is displayed in the browser tle bar: Coming up with a good domain name The name of your site should of course be reected in the domain name. Your domain name may be shorter, it may be an abbreviaon, but it should be associated with the name you carry on the site itself. If you haven't already chosen a domain name, how can you come up with a domain name that's short, easy, and memorable? Unless you've got a very strong brand that visitors know and recognize, you might want to use a descripve domain name, telling people right up front what product or service you're oering. If you're selling bicycles or providing nancial advice, it's good to combine these with your business name to create a web domain name like petersbicycles.com or petersnancialadvice.com. To help you nd a nice do main na me ( that isn 't taken ye t!), you can use ma ny resources on the Web. On http://justdropped.com, you'll nd expired domain names that are available again. On http://domainsbot.com it's easy to type several possible domain names to quickly nd out if they're available. If you're really stuck, do a Web search to nd a "domain name generator" helping you on your way. Download at Wow! eBook WWW.WOWEBOOK.COM Chapter 12 [ 325 ] Use search engine friendly URLS Up to now, we've focused on SEO techniques you can deploy when wring content for your website. You can apply SEO techniques by presenng and formang arcles to make their contents easily ndable, or by adding clear metadata to your site and its contents. Another technique that can make search engines pick up the contents of your site more easily is to make your URLs clear and readable. Aer all, you've probably noced Joomla!'s default URLs contain a good deal of incomprehensible gibberish: http://www.srup.net/index.php?option=com_ content&view=article&id=82:ugly-paintings-gallery&catid=39:facts&Item id=54 Actually, this is not gibberish, but sll human beings as well as search engines will have a hard me guring out what all the codes, special characters, and numbers are about. That's why you'll probably want to use search engine friendly (and human friendly) URLs. This technique results in readable URLs that match the content of the page, such as the following example: http://www.srup.net/ugly-paintings.html Joomla! has search engine friendly URL funconality built-in, but it's turned o by default. Time for action – enable search engine friendly URLs Let's switch on Joomla!'s friendly URL funconality: 1. Navigate to Site | Global Conguraon. In the Site tab, there's a SEO Sengs secon. Set Search Engine Friendly URLs to Yes: 2. Click on Apply and preview the frontend of the website. In the browser, URLs will now look something like this: Download at Wow! eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 326 ] This is much beer as these URLs are shorter and easier to understand. However, as you browse your site, you'll see that all URLs share the index.php bit. You can change this using the other SEO Sengs. This requires a bit more work than just selecng Yes; you'll also have to rename a le on the web server. Feeling condent? Let's try it out. If you've installed Joomla! locally you may experience some dicules with the next step that requires renaming a le to .htaccess (with a leading dot). By default, Mac OS Finder and Microso Windows Explorer don't allow you to rename lenames starng with a dot. There are several workarounds, but it's easiest to just rename the le using your FTP program. This does allow you to use a leading dot in the names of both local les (on your computer) and remote les (on the web server). Another point to note is that not all hosng providers allow you to use .htaccess les. If you're not sure whether your account supports using .htaccess, check with your hosng provider. 3. Navigate to Site | Global Conguraon. In the Site | SEO Sengs secon, make sure all three of the opons are set to Yes: 4. The Use Apache mod_rewrite opon may sound like technical mumbo jumbo, but it's a crical seng, allowing further customizaon of URLs. For this to work, you'll have to rename the htaccess.txt le that's installed with Joomla!. Using your FTP program, go to the root of your Joomla! site on the web server. Locate the htaccess.txt le: Download at Wow! eBook WWW.WOWEBOOK.COM . default descripon text in the Joomla! demo site (Joomla! - the dynamic portal engine and content management system). You'll get a huge list of results, all links to Joomla! -powered websites that. opon in their web browser). By default, your Joomla! -powered site will only contain some dummy metadata, consisng of a short descripon and a few Joomla! -related content keywords. Let's. eBook WWW.WOWEBOOK.COM Aracng Search Engine Trac: Tips and Techniques [ 320 ] 4. Leave Show Title Meta Tag and Show Author Meta Tag set to Yes. This way, Joomla! will not only add global (site-wide) meta keywords

Ngày đăng: 04/07/2014, 17:20

Xem thêm: Joomla cho người mới bắt đầu part 32 ppt

TỪ KHÓA LIÊN QUAN