Hello,
I have some old blog posts that I have removed and I want to redirect the links to them to go to my main blog page. I use seo urls.
So I tried this:
Redirect 301 /blog/old-article /blog
but the result is still the 404 page, and this shows as the url in the searchbar:
http://mywebsite.com/blog/?_route_=blog/old-article/
I have searched the forums for someone with a similar problem but I can't find anything. Please help!
The /blog should be the full url like http://yourdomain.com/blog
You can also add the following just after
RewriteBase /
You may need to clear a browser cache though.
You can also add the following just after
RewriteBase /
Code: Select all
RewriteRule ^blog/old-article$ /blog [R=301,L]
Great that worked! I had to put it immediately after "rewrite base /" as you said, because when I just added it to the bottom of the .htaccess file it did not work.
Thanks so much
Thanks so much
Who is online
Users browsing this forum: No registered users and 14 guests