Question about URL structure

Royal96

Power Member
Joined
Mar 16, 2019
Messages
683
Reaction score
376
I have a blog that was offline for a few months, and now I want to rebuild it. Most of the pages aren't indexed anymore.

The previous URL structure was:

domain.com/blog/article

Now, I want to use this URL structure:

domain.com/article

Is it enough to redirect them, or should I let the articles index with their previous URL structure before redirecting them?

A few pages had links pointing to them, and I'm curious what would be the best practice for keeping the link juice.
 
some modules allow you to save both URLs - with an old one directing to the new one. this'd be the best option for you
 
I usually do my redirects through RankMath. Is that the same?

I would not do it, it might be a lot slower! You would multiply your page load by 2. A Rewrite Rule in htaccess is a better option I think.
 
403 and you are ready to go.
I usually do my redirects through RankMath. Is that the same?
Yes it's exactly the same given the fact that it's a super easy redirect

If it was a little bit complicated I would also recommend htacess

Nice part of Rankmath is that you have a little "debugger" that lets you check if the redirects are working in admin mode and also you can see how many times they have been impacted.
 
Thank you for your help guys!

So, it's not necessary to index the articles with their old URL structure first? That would be great, as it's a lot faster this way.

@SirLouen Why 403 and not 301? Isn't 403 an error like forbidden?
 
Just to add, if you use the "Redirection" wp plugin by John Godley and change the settings to monitor changes in posts and pages. When you change the URL it will automatically create a 301 redirect. Could save time.
 
Back
Top