Post by pheasantpress » Thu Aug 13, 2015 12:10 am

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!

Newbie

Posts

Joined
Tue Oct 21, 2014 10:07 pm


Post by deepvision » Thu Aug 13, 2015 12:41 pm

The /blog should be the full url like http://yourdomain.com/blog

You can also add the following just after
RewriteBase /

Code: Select all

RewriteRule ^blog/old-article$ /blog [R=301,L]
You may need to clear a browser cache though.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by pheasantpress » Thu Aug 13, 2015 9:43 pm

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

Newbie

Posts

Joined
Tue Oct 21, 2014 10:07 pm

Who is online

Users browsing this forum: No registered users and 14 guests