I switched from a Windows server to Linux and I am very new to htaccess. In addition, I changed the permalinks structure from / year / month / post to / post. To make sure that the old links in search engines are still working, I added the following line to the htaccess file, which works great to redirect old URLs to new ones, but read on:
RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/(.*)$ http://www. keptlight .com/$3
Now my year / month archives always point to the root of the site, since / year / month / is deleted. For instance:
www. keptlight .com/2014/02/ orchis-is-coming-2/
correctly redirected to:
www. keptlight .com/orchis-is-coming-2/
But monthly posts for a given month:
www. keptlight .com/2011/06/ or any other year / month is always redirected to:
www.keptlight.com
Is there a way to overcome this problem and display monthly archives correctly when only a year / month / follows a domain without a message header?
Thanks in advance.
Cemal ekin