MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Dynamic URL and static URL

Source: Shangpin China | Type: website encyclopedia | Date: February 21, 2012
Beijing website construction Company Shangpin China: using database, such as PHP or JavaScript dynamic script, you can insert Website production It is also increasingly favored. This type of website is considered dynamic. Many websites choose static content and dynamic content. This is because if a website has thousands of products or pages, it is a difficult task to write or update each static manual.

There are two types of URLs: dynamic and static. Dynamic URL is the web page address, from a database driven website or a website, to run the script URL search results. Compared with the static URL, the content of the page remains unchanged, unless the hard coding is changed, the HTML will be generated, and the dynamic URL will be queried from the database of the specific website. The dynamic page basically has only one template, in which the database query results are displayed. Change the information in the HTML code instead of the data being changed in the database.

But there is a risk when using dynamic URLs: search engines don't like them. For those websites that lose dynamic URLs, search engines locate the most dangerous e-commerce stores, forums, websites that use content management systems, such as Mambo or WordPress blogs, or any other database driven websites. Most of the time, the URL generated from a dynamic website content looks like this: //www.somesites.com/forums/thread.php?threadid=12345&sort=date ~~V On the other hand, a static URL does not change, and there is no variable string. It looks like this: //www.somesites.com/forums/the-challenges-of-dynamic-urls.htm

Static URLs are usually ranked better in the search engine results page, and they are faster than dynamic URL indexes, if the index dynamic URL gets. Static URLs also make it easier for end users to view and understand what the page is about. If users see a URL matching the title and description of the query in the search engine, they are more likely to have more than one URL, which makes no sense for them to click the URL.

Search engines want pages that only list their indexes to be unique. The search engine decided to combat this problem by cutting the specific number of URLs of variable strings (such as&=).

For example, let's look at three of these URLs pointing to three different pages. However, if the search engine clears the information of the first offending character, the question mark (?), all three pages now look like you do not have a unique page, so duplicate URLs will not be indexed.

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

This research involves hundreds of competitive keyword queries, such as tourism, automobile, computer software, and the comparison of the factors of the top ten results. Statistics show that among the top ten, 40-50% of Google's keywords in URL or domain name; Yahoo shows that 60% and MSN have a staggering 85%! What is meant by these search engines is that your keywords in your website or domain name may mean the difference between the top ten rankings and the ranking of the result page.

Solution
So, can you do this tricky problem? You certainly don't want to go back and re encode each dynamic URL into a static URL. This would be too much work for any site owner.

If you are hosting on a Linux server, then you will want to rewrite most of the Apache Defense Department rules, which is to give you the knowledge and ability to redirect a URL to another search engine without users. You need more information about installing this module in Apache. You can view the documentation of this module here. This module saves you from having to rewrite static URLs manually.

How does this module work? When a request arrives at a new static URL server, the Apache module redirects the old, dynamic URL inside, but still looks like the new static URL. The comparison between the Web server and the search pattern in the individual rules of the client request URL.

For example, when someone requests what information the server listed in the request looks like to compare with a static URL URL:
//www.somesites.com/forums/the-challenges-of-dynamic-urls.html Htaccess file, such as RewriteEngine description (*).? The RewriteRule thread ID HTM $thread.php topic ID=$1, and then converted to a static URL The old dynamic URL looks like this, no one, more sensible: //www.somesites.com/forums/thread.php?threadid=12345

Now, it will only rank in the better URL of the search engine, but your end users can be sure to understand what page will be the relevant URL at a glance, and at the same time allow Apache's Ministry of Defense to rewrite the rules to handle your conversion, and still keep the dynamic URL.

If you are not a special technology, you may not want to try to find out the complicated modern rewriting code and how to use it, or you simply do not have time to embark on a new learning curve. Therefore, it will be very useful to do something for you. This URL rewriting tool can definitely help you. This tool is to implement the rewriting rules of the Ministry of Defense. The htaccess file covertly converts the URL to another dynamic and static one, such as.

With the URL rewriting tool, you can choose to rewrite a single page or the entire directory. Just enter the web address in the box, press Submit, copy and paste it into your. The code generated by the htaccess file for the root of your website. You must remember your. The htaccess file is placed in each dynamic URL, and you want Apache to rewrite any additional rewriting commands. Now, you don't need to change your dynamic URL manually, because you let the Ministry of Defense rewrite the rules to do the conversion for you, without JavaScript, camouflage, or any sneaky tactics, you can give static URL links on your website.

Another thing you must remember to do is to change the static URL of all links on your website to avoid the punishment of search engines for duplicate URLs. You can even add your dynamic URL, and your robot excludes standard files (robots. txt) to prevent search engine spiders from repeating URLs. Regardless of your method, after using the URL rewriting tool, you'd better have no links to any of your old dynamic URLs.

There are many reasons to use static URLs on your website. When it can't and you need to put the content that should be driven by the database, these old dynamic URLs, you can still give end users and search engines 1 static URL navigation, and all at the same time, they are still your disguised dynamic URLs. Someone asked if this method is considered "invisible" when a search engine engineer replied that it is not. In fact, search engines like you to do this. URL rewriting tool can not only save your time and energy, but also help you convert them into your dynamic URL static URL transparently, but it will also save the ranking in search engines.

This article was published on Beijing website production Company Shangpin China //ihucc.com/
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]