SEO Sunflower Book: Share file name and extension site optimization

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

You should have noticed that in the above case, the file name of each page itself is also part of the optimization (it is recommended to use a hyphen-delimited three-word). You should also note that each page ends with an. html. Personally, SEO treasures usually choose the static. html extension as much as possible. However, Google's new Moziila web crawler does a lot better with dynamic pages (dynamic pages are modified every time they are browsed, such as displaying the current time or a different picture), with a "?" in the query string. or "%" a fairly complex URL may still cause your page to enter the dreaded supplemental index (SEO sunflower will be introduced on the official website).

However, many content management and e-business solutions generate dynamic file names. Many of them I appreciate, and are also used, such as my favorite joomla!. Here's the question: What do we do with dynamic URLs?

Use the Mod_rewriremod_rewrite standard to rewrite URLs at the server level (between the browser requesting a page and the server rendering page). This means that the user www.yourdomain.com/widgets/blue.html requesting a static page is actually returned by the server to the dynamic page Www.yourdomain.com/widgets.php?color=blue, and completely unaware that all this is magic of technology.

If you want to use mod_rewrite, you need managed hosting support. If you use the Apache Web server, you can query whether it supports Rood_rewrite, view httpd.conf files, or run a PHP query in php.info files. However, here SEO treasures will not be too in-depth introduction, SEO Sunflower recommended you contact the web hosting support team to ask them this question. In the remainder of this section, the SEO sunflower assumes that the answer is yes. If their answer is no, it may be time to consider another custodian.

Remember the 301 redirects and. htaccess files We mentioned earlier? We also implement mod_rewrite through this file. In the following brief example, this code overrides the browser's page request, rewriting http://www.yourdomain.com/apple.html to http://www.your-domain.com/ The content of the Orange.html:-rewriteengine onrewriterule^apple.html$orange.htmlorange.html will be displayed to the user, but the URL in the browser is apple.html. This sounds simple, but it's a hassle to write the correct mod_rewrite rules for complex dynamic URLs, because you need to use complex conditional operators. Developers of commercial software that generate dynamic URLs should have the knowledge to support mod_rewrite (at least the Apache server). Some also provide complete back-end module support, which you can load directly as plug-ins, but with no harm. Ask the developer, read the FAQ, and seek help.

Persistence will make you successful, if it is not possible, to SEO treasure website to seek help.

You may have heard of the inability to use Mod_rewrite on Windows servers, which is actually not true and you can use it. However, implementing mod_rewrite on Windows (for example, overriding. aspx files) is much more complex than Apache. You may need to seek help from a professional developer, or you can go to www.sales888.net/to look for it. In any case, this is worthwhile, so don't give up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.