need a redirect rule to send old permalink stucture to new one
-
Greetings
Years ago, I set my custom permalinks to:
/%postname%.html
And now that I know this was a bad choice, I tried to change it to: /%category%/%postname%
But the problem is that the links in google now give 404 error pages.
Is there a code I can add to my htaccess to redirect links from the old strucutre to the new one please?Currently, my htaccess has this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Many thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘need a redirect rule to send old permalink stucture to new one’ is closed to new replies.