tailieunhanh - Joomla cho người mới bắt đầu part 33

Bạn đã chỉ lừa công cụ tìm kiếm tưởng bạn đang sử dụng tốt các trang web cũ HTML. Joomla! hiện đang hiển thị các URL mà dường như chỉ vào các trang, như xấu . Sử dụng SEF URL sẽ làm cho nó dễ dàng hơn cho du khách và các công cụ tìm kiếm để hiểu nội dung của trang này là URL trỏ đến. Như bạn đã thấy, Joomla là khá URL có ba hương vị!: | Chapter 12 5. Rename to .htaccess yes this file name should start with a dot and should not have a file extension such as .txt 6. Click on Save and click on Preview. Browse your site and you should now experience the magic. Your URLs are short and descriptive like this http What just happened You ve just fooled search engines into believing you re using good old HTML web pages. Joomla now displays URLs that seem to point to pages such as http . Using SEF URLs will make it easier for visitors and search engines to understand the contents of the page this URL is pointing to. As you ve seen Joomlal s pretty URLs come in three flavors By setting Search Engine Friendly URLs to Yes you ll get short and readable URLs but they do all contain the filename. By setting Use Apache mod_rewrite to Yes you ll tell Joomla to make the URLs even prettier. They no longer contain . Your hosting provider has to support this feature called mod_rewrite they should have the mod_rewrite module installed on the web server. This technique involves using an .htaccess file containing rules telling the web server how to deal with these pretty URLs. By setting Add suffix to URLs the html suffix is added to URLs. This is recommended because this makes the Joomlal output look like pages in static sites. Search engines tend to prefer static pages to dynamic output which is likely to change all the time. 327 Attracting Search Engine Traffic Tips and Techniques What if it doesn t work And what if the pretty URLs function doesn t work First check if you ve renamed properly to .htaccess mind the leading dot . If you still get error messages when checking out the frontend of the site it s possible your web server doesn t support the advanced requirements of the second option using mod_rewrite . In this case you should try if setting only the SEO Settings option Search Engine Friendly URLs to Yes