URL Redirection Help Needed?

Hi, Freinds! I have a big problem related to my SEO work. I’m working on my company site that was completely on WordPress. A couple of weeks ago our developer has transfer main site to HTML site and kept a blog to the same WordPress by transferring in new folder “/blog”.

Now, I’m facing big issues. I don’t have much knowledge regarding development and our developer are not taking this seriously.

The problem is I tried to redirect old blog URLs, which are getting huge organic clicks, to new blog URLs through WordPress redirect plugin but it is not working.

I want to know how can I redirect old URL to a new one.

URL Structured:

OLD URL: mysite.com/ctaegory/postname NEW URL: mysite.com/blog/postname

Waiting for your solutions!

This is not my area of expertise, but I believe this should work:

Redirect 301 /category/ /blog/

It might be as well to test it using Redirect 302 (temporary redirect) until you are sure it is working as expected.

2 Likes

On other forum I got this reply, but it didn’t work for me

put (or edit) a .htaccess file in your website’s public folder so it contains this (preferably the first rule, if there are any others):

RewriteEngine on
RewriteRule ^category/(.*)$ blog/$1 [R=301,L]

As I say, I’m not an expert here, so I tend to stick to Redirect (rather than Rewrite) as I find it simpler.

(In case it is unclear, that line goes in the .htaccess file.)

1 Like

Now waiting for the developer to solve this issue is the only option for me. Until, I’ve to enjoy traffic loss :rage:

You were right, 301 redirects worked fine, But I’ve to put separate 301 for each old URL and the good thing is there are only 10 12 posts that need to be redirected.

Thanks, @TechnoBear for your help.

1 Like

You can also perform redirects using a 301 page that your hosting provider provides. Make sure if your using ssl to forward the non ssl version of that url to the new redirct. I did that for my website with both www. and no www

1 Like

The problem has been solved yesterday.
Thanks for your reply.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.