/    Sign up×
Community /Pin to ProfileBookmark

301 Redirect issue

OK this is annoying me, hoping it’s something obvious that I’m missing…

I’ve been asked to setup a load of 301 redirects to maintain the ol’ SEO juice.
It’s a WordPress website, the pages have been restructured so it’s hierarchical rather than flat.

The issue is, some of my 301’s appear to be dropping a “/” mid-URL. Most are fine, but some are doing this… What?!?!?
I’ve G***led repeatedly but can’t find what a solution.

Please, someone, help while my hair is intact?!

One example, from my .htaccess file

[CODE]redirect 301 /childrens-events/youth-and-school-groups/ https://full-url.com/parent/children/youth-and-school-groups/[/CODE]

Pretty obvious where it [I]should[/I] go to… However, it’s dropping the “/” after “children” and simply merging “childrenyouth-and-school-groups”.

It’s doing this on a number of these URLs that include the term “children”.???
There’s no repetition of the URL in the htaccess file, in the Yoast SEO plugin or in the 301 redirect plugin that’s been installed previously.

Any help appreciated.!

to post a comment
SEO

7 Comments(s)

Copy linkTweet thisAlerts:
@SheenaMay 02.2017 — Redirection is the process of forwarding one URL to a different URL. There are three main kinds of redirects:-

301, "Moved Permanently"—recommended for SEO

302, "Found" or "Moved Temporarily"

Meta Refresh

[b]**Links removed by Site Staff so it doesn't look like you're spamming us. Please don't post them again.** [/b]
Copy linkTweet thisAlerts:
@morris_wmauthorMay 02.2017 — Sheena thanks for the reply.

Not sure what was there before the edit but what's left doesn't really answer my question..?
Copy linkTweet thisAlerts:
@HostingsafetyMay 03.2017 — A 301 redirect is a permanent redirect which passes between 90-99% of link juice (ranking power) to the redirected page.
Copy linkTweet thisAlerts:
@morris_wmauthorMay 05.2017 — Without wanting to sound like a complete douche, are people actually reading the question before replying?

Just to make it clear

  • 1. I know what a 301 does.

  • 2. I know how a 301 works.

  • 3. I don't know why the 301 I've written is redirecting incorrectly.




  • Thanks.
    Copy linkTweet thisAlerts:
    @seoninja25May 09.2017 — A 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It’s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it’s the safest option. The code “301” is interpreted as “moved permanently”.
    Copy linkTweet thisAlerts:
    @ZorgMay 10.2017 — It's most likely a wordpress plugin affecting your redirects. Start disabling some plugins, the fact that the url is being served out means the redirect is working but a plugin can be catching it and rewriting it within wordpress. Some plugins don't write to your htaccess and use php to do the redirects.

    You can also try to comment out some rewrite directives in your htaccess, one can be set to a wildcard, catching and rewriting it somewhere. but without seeing how your wordpress is configured, can't tell ya forsure.
    Copy linkTweet thisAlerts:
    @morris_wmauthorMay 10.2017 — It's most likely a wordpress plugin affecting your redirects. Start disabling some plugins, the fact that the url is being served out means the redirect is working but a plugin can be catching it and rewriting it within wordpress. Some plugins don't write to your htaccess and use php to do the redirects.

    You can also try to comment out some rewrite directives in your htaccess, one can be set to a wildcard, catching and rewriting it somewhere. but without seeing how your wordpress is configured, can't tell ya forsure.[/QUOTE]


    Thanks Zorg. I envisage some late night testing...
    ×

    Success!

    Help @morris_wm spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.4,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...