Tapak web saya ialah laman web WordPress dan saya ingin menyemaknya
Pautan tetap melompat dari http://nama domain/%post_id%.html ke http://nama domain/%category%//%post_id%.html
Apakah yang perlu saya lakukan dengan ini? Bagaimana dengan menulis peraturan ubah hala 301 untuk fail .htaccess?
Berikut ialah fail htaccess semasa:
# MULAKAN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase
boleh tukar dari belakang#RewriteBase /
d %{HTTPS} on' kepada sesuatu yang lebih masuk akalAddDefaultCharset UTF-8RewriteCond %{REQUEST_METHOD} !POSTRewriteCond %{QUERY_STRING} !.*=.*RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*%{HTTPCond🎎 *(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% {SERVER_NAME}/$1/index-https.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L ). $
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. .gz -fRewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]RewriteCond %{REQUEST_METHOD} !
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTPProfileCond %{HTTPProfile } ! ^[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} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %}!HTTP.*Cookies |wordpress_log masuk |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># TAMAT WPSuperCache
MULAKAN WordPress <IfModule mod_rewrite.c>
RewriteEnine OnRewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RuleRewrite /index.php [L]
</IfModule>
# TAMAT WordPress
# BERMULA EWWWIO
# TAMAT EWWWIO
fikirphp
Adalah disyorkan untuk menggunakan lompatan php 301