I want to redirect some URL's using htaccess file.
My htaccess files is as under:
# 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>
Redirect /old-post-type/old-parent-post/old-post-slug/ /new-post-type/new-post-slug/
***** Some More URLs *****
# END WordPress
It should redirect to http://yourwebsitedomain.com/new-post-type/new-post-slug/ but, it is redirecting to http://yourwebsitedomain.com/new-post-type/new-post-slug/old-post-slug/
"old-post-slug/" automatically added to last I don't know why?
Any suggestions accepted.