Look for this line in your .htaccess
. If it doesn't exist, add it.
RewriteEngine On
Add this line below RewriteEngine On
.
RewriteRule ^my-blog/(.*)$ /my-blog/entry/$1 [R=301,L]
That will redirect your current URL as described. The R=301
makes this a permanent 301 redirect. The L
directive tells Apache to stop applying any rules that follow.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…