nikhilrajr - 6:46 am on Sep 26, 2012 (gmt 0)
This is my first post on Webmasterworld..!
My old blog was at www.example.com/myblog
I changed my server and I want to use www.example.com/blog
To do this I used htaccess code
Redirect 301 /myblog http://www.example.com/blog
This helped in redirecting the blog home page and individual blog posts.
The images were put in a folder named myblog in the new server.
So the image url is www.example.com/myblog/wp-content/uploads/2010/04/something.jpg
But the htaccess I wrote above redirects this to www.example.com/blog/wp-content/uploads/2010/04/something.jpg which returns 404.
Can anyone help me to write htaccess code for redirecting blog post urls only excluding the blog image urls?