Dynamic URLs and static URLs

Source: Internet
Author: User

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

Web sites take advantage of databases that can insert content into a Web page and are increasingly popular through a dynamic script such as PHP or JavaScript. This type of site is considered vibrant. Many sites choose dynamic content, static content. This is because if a website has thousands of products or pages, or write, update each static hand, is a difficult task.

There are two types of URLs: dynamic and static. A dynamic URL is a web page that resolves this result from a search of a database-driven website or URL to a website that runs a script. By contrast, the static URL, where the content of the page remains unchanged, unless the hard coded to HTML format, the dynamic URL produces a specific problem to a site's database. Dynamic pages basically have only one template, in which to showcase the results of database queries. Instead of changing information, the data changes in the HTML source code in the database.

But there's a dangerous time to use dynamic URLs: Search engines don't like them. For those who are most likely to lose the search engine positioning, as dynamic URLs are e-commerce shops, forums, use site content management systems and blogs as mambo or in WordPress, or any other database-driven site. Many times, URLs are for content, in a dynamic web site that looks like this:

Http://www.baiag.com/view.asp?id=20

A static URL on the other hand, is a URL that does not change, and does not transform the string orchestra. It looks like this:

Http://www.baiag.com/baiag/20.html

Static URLs are usually better ranked on the search engine results page, and they are indexed faster than dynamic URLs if the dynamic URLs get no indexes. Static URLs are also easier for end users to see and understand which pages are available. If the user sees a URL in the search engine query that matches the name and description, they are more likely to click on the URL than one says, which is unreasonable.

Search engines want to just list the page, its index, has its particularity. Search engine decided to deal with this problem, cut off the URL after the specific number of variable strings (for example:? & =).

For example, let's look at three URLs:

Http://www.baiag.com/view.asp?id=24

Http://www.baiag.com/view.asp?id=23

Http://www.baiag.com/view.asp?id=25

All of the above 3 URL points to three different pages. However, if the search engine cleans the material, the first will offend the character, at the question mark (?), now all three pages, look is the same:

Http://www.baiag.com/view.asp?id=1

http://www.baiag.com/view.asp?id=2

Http://www.baiag.com/view.asp?id=3

Now, you don't need a unique page, so duplicate URLs will not be indexed.

Another problem is that dynamic Web pages generally do not have any keywords in the URL. It is very important to have a rich keyword URL. Highly relevant keywords should appear in the domain name or Web site. This is clearly in a recent study on how the top three search engines, Google, Yahoo, and MSN, rank websites.

The study involved hundreds of competitive keyword queries, such as tourism, automotive, computer software, and comparative factors involving ten outcomes. Statistics show that the top 10, Google has 40-50 people with keywords either in the URL or domain name, Yahoo shows, 60; and MSN has an amazing 85! What that means is that these search engines allow you to have keywords in your URL or domain name that might mean a difference in the top ten rankings, Ranked far in the results page.

The solution

So how can you be on this thorny issue? Of course you don't want to go back and recode each single dynamic link to a static URL. It will be too much work for any site owner.

If you are hosting a Linux server, then you will want to make most of the Apache mod rewrite rules, which is giving you the ability to redirect a URL to another, if not a user's (or search engine's) knowledge. inconspicuously You must have this unit installed in Apache; For more information, you can view the file for this module here. This module allows you to not rewrite your static URL manually.

What about the work of this module? When a request comes in to a server, for the new static URL, the Apache module redirects the URL inside the old, dynamic URL, and looks like a new static URL. The Web server compares URL requests by customers with individual rules in the search pattern.

For example, when someone invites this URL:

Http://www.baiag.com/baiag/26.html

Look at the server and compare this static-looking URL to what information is listed in. htaccess files, such as:

About Rewriteengine

Rewriterule Thread ThreadID-(*) \. Heat Medium thread.php? ThreadID = 1 Yuan

Then convert to static links to old dynamic URLs that look like this, without a sensible:

http://www.somesites.com/forums/thread.php?threadid=12345

You now have a URL that only rankings will be better in search engines, but your end users can absolutely understand what the Web site will be about, and also allow the Apache MoD rewrite rules to be processed to convert to you, and now still keep the dynamic URLs.

If you are not a special technique, you may not want to try to figure out the complex mod rewrite code and how to use it, or you simply may not have enough time to embark on a new learning curve. So it will be extremely advantageous to have to do it to you. This URL rewrite tool can definitely help you. Whether this tool is executing DOD rewrite rules in your. htaccess files are secretly converted to URLs for another purpose, such as dynamic and static.

With the URL rewrite tool, you can selectively rewrite a single page or an entire directory. Simply enter the URL into the box, and then press and copy and paste the generated code into your. Htaccess file on the root of your site. You must remember any additional rewriting instructions that occur in your. htaccess file, for each dynamic URL you want Apache rewrite. Now, you can give static URL links to your site when you do not have to change all your dynamic URLs manually, because you are letting the MoD rewrite the rules to do the conversion of your, no invalidation when not to use, or any sneaky tactics.

Another thing you have to remember is that this is done to change all your links in your site to static URLs to avoid penalties by the search engine because there are duplicate URLs. You can even add your dynamic URLs to your robot rejection standard file (robots.txt) in order to copy the search engine from the spidering URL. Regardless of your method, after using the URL rewrite tool, you should preferably not have any links pointing at any of your old dynamic URLs.

You have a variety of reasons to use static URLs wherever possible on your site. When it's impossible, you have to keep your database-driven content, because of these old dynamic URLs, you can still give end users and search engines a static URL to browse, while all at the same time they are still your dynamic URLs disguised. When a search engine engineer, someone asked, if this method is considered "hidden", he responds by saying that it is indeed not, and that, in fact, the search engine likes you to do so. URL rewriting tool, not just for you to save time and effort to help you transparently convert to your dynamic URLs with static URLs, but it will also save you rank in search engines.

Related Article

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.