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