Search engine-oriented URL optimization

Source: Internet
Author: User
I did not consider how URL-oriented search engine optimization was taken into account when I wrote Jin Yuan Information Network (www.geofuture.net). after the optimization, I started. In this case, we need to consider static URLs, and try to keep the original programs unchanged for future protection,

I did not consider how URL-oriented search engine optimization was taken into account when I wrote Jin Yuan Information Network (www.geofuture.net). after the optimization, I started. In this case, we need to consider static URLs. On the one hand, we should try to keep the original program unchanged for future protection, so we should adopt the url_rewrite method. The following is the corresponding part of httpd. conf.


DocumentRoot/home/geofuture
ServerName www.geofuture.net
ServerAlias * .geofuture.net geofuture.net * .cic123.com
DirectoryIndex index. files index.html index. php
RewriteEngine On
# RewriteLog logs/rewrite. log
# RewriteLogLevel 9
# RewriteRule/http://geofuture.vicp.net/[L]
RewriteCond % {REQUEST_FILENAME} index. files [OR]
RewriteCond % {REQUEST_FILENAME} error. files [OR]
RewriteCond % {REQUEST_FILENAME} cat. files [OR]
RewriteCond % {REQUEST_FILENAME} area. files [OR]
RewriteCond % {REQUEST_FILENAME} info. files [OR]
RewriteCond % {REQUEST_FILENAME} topic. files [OR]
RewriteCond % {REQUEST_FILENAME} post. files [OR]
RewriteCond % {REQUEST_FILENAME} profile. files [OR]
RewriteCond % {REQUEST_FILENAME} userinfo. files [OR]
RewriteCond % {REQUEST_FILENAME} cert. files [OR]
RewriteCond % {REQUEST_FILENAME} revise. files [OR]
RewriteCond % {REQUEST_FILENAME} review. files [OR]
RewriteCond % {REQUEST_FILENAME} feedback. files [OR]
RewriteCond % {REQUEST_FILENAME} keyrank. files [OR]
RewriteCond % {REQUEST_FILENAME} rss. files
RewriteRule ^ (.?) \ Q (. *) $1 = $2 [N]
RewriteRule ^ (.?) ZZ (.) $1 & $2 [N]
RewriteRule ^ (.?) \. Files (. *) $ 1.php$ 2 [N]
RewriteRule ^ (.?) \. Php (/| &) (. php.html $ 1.php? $3 [L]
ErrorDocument 400/error. php? Status = 400
ErrorDocument 401/error. php? Status = 401
ErrorDocument 403/error. php? Status = 403
ErrorDocument 404/error. php? Status = 404
ErrorDocument 405/error. php? Status = 405
ErrorDocument 408/error. php? Status = 408
ErrorDocument 410/error. php? Status = 410

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.