enblogopedia
Member
Posted 5 years ago #
Hi I changed my old Permalink structure from
/2006/01/12/what-ever/ to /what-ever/
with a plugin...and everything is working just fine. But now..my old feeds links are not directing to the new structure, means:
/2006/01/12/what-ever/feed/ is giving me an error
and I want it to be /what-ever/feed/
Note that my .htaccess file in the root directory..and it`s direct to the blog automatically (i.e RewriteRule . /index.php [L])
What should I do, and in which line should I put the new redirecting command(before after RewriteRule . /index.php [L]) ?!!
Thank you
enblogopedia
Member
Posted 5 years ago #
Also I wrote in a past thread...(where I was asking for directing...) and I wrote an example link with my actuall link..just like
http://www.mysite.com/whatever/ ..and now google are counting this as a link and giving me a 404 error!!! what should I do?
please try to edit the post that cause the problem here.
enblogopedia
Member
Posted 5 years ago #
enblogopedia
Member
Posted 5 years ago #
enblogopedia
Member
Posted 5 years ago #
It sounds like you changed your permalink structure from /yyyy/mm/dd/postname to /postname?
I'm not very good at rewrite rules but I think you need something like this, *before* any of Worpress's rules:
RewriteRule ^[0-9]{4}/[0-9]{2}/([^/]+/feed/?.*) $1 [R=301]
If you're going to use [R=301], then make it into [R=301,L]. Otherwise WordPress's rules may break your redirect.
enblogopedia
Member
Posted 5 years ago #
Thanks Guys!!!
I tested it and it works!
Hope that all 404 will disappear now!