My website is a wordpress website and I want to revise it
The fixed link jumps from http://domain name/%post_id%.html to http://domain name/�tegory%//%post_id%. html
How should I write the 301 redirection rule for the .htaccess file?
The following is the current htaccess file:
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp- postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"] [NC]
RewriteCond %{HTTP:Profile} ! ^[a-z0-9\"] [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} on
RewriteCond %{ DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{ SERVER_NAME}/$1/index-https.html.gz" [L]
##RewriteCond %{REQUEST_METHOD} !POSTRewriteCond %{QUERY_STRING} ! .*=.*RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$RewriteCond %{HTTP:X-Wap-Profile } !^[a-z0-9\"] [NC]RewriteCond %{HTTP:Profile} !^[a-z0-9\"] [NC]RewriteCond % {HTTP:Accept-Encoding} gzipRewriteCond %{HTTPS} !onRewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index. html.gz -fRewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]
RewriteCond %{REQUEST_METHOD} !POSTRewriteCond %{QUERY_STRING} !.*=.*RewriteCond %{HTTP:Cookie} !^.*(comment_author_ |wordpress_logged_in|wp-postpass_).*$RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"] [NC]RewriteCond %{ HTTP:Profile} !^[a-z0-9\"] [NC]RewriteCond %{HTTPS} onRewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/ %{SERVER_NAME}/$1/index-https.html -fRewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html" [L ]
RewriteCond %{REQUEST_METHOD} !POSTRewriteCond %{QUERY_STRING} !.*=.*RewriteCond %{HTTP :Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"] [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"] [NC]RewriteCond %{HTTPS} !onRewriteCond %{DOCUMENT_ROOT }/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -fRewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/ index.html" [L]</IfModule>
END WPSuperCache
# BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN EWWWIO
# END EWWWIO
thinkphp
It is recommended to use php’s 301 jump