The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Redirect old "not found" url (at http) to new corresponding page (now at https)

    Redirect old "not found" url (at http) to new corresponding page (now at https)

    Intermediate & Advanced SEO
    4 4 312
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SUCCESSagency
      SUCCESSagency last edited by

      My least favorite part of SEO 😉

      I'm trying to redirect an old url that no longer exists to our new website that is built with https.

      The old url: http://www.thinworks.com/palm-beach-gardens-team/

      New url: https://www.thinworks.com/palm-beach-gardens/

      This isn't working with my standard process of the quick redirection plugin in WP or through htaccess because the old site url is at http and not https.

      Any help would be much appreciated! How do I accomplish this, where do I do it and what's the code I'd use?

      Thank you Moz community!

      Ricky

      1 Reply Last reply Reply Quote 0
      • heymarshall
        heymarshall last edited by

        I use the Yoast SEO plugin. It has a great utility for redirects. It's only in the paid version though. It's worth the $ but it's not cheap. $89

        https://yoast.com/wordpress/plugins/seo-premium/

        1 Reply Last reply Reply Quote 1
        • BlueprintMarketing
          BlueprintMarketing last edited by

          Along with Redirection I think the Yoast WordPress SEO premium plug-in is probably the best redirection and search plug-in for WordPress.

          One thing I wanted to let you know is that you are showing HTTPS you should be forcing HTTPS though I do not believe it has anything to do with this particular issue.

          Add the following redirect to the the top of your .htaccess file:

          RedirectMatch 301 ^/palm-beach-gardens/$ https://www.thinworks.com/palm-beach-gardens-team/?p=$
          

          You may need to implement force HTTPS

          Use https://wordpress.org/plugins/wp-force-https/

          of course depending on your hosting provider and other factors you can do one better and implement it in this method

          https://support.cloudflare.com/hc/en-us/articles/203291960-Does-enabling-Universal-SSL-automatically-force-https-

          sincerely,

          Thomas

          1 Reply Last reply Reply Quote 0
          • KingRosales
            KingRosales last edited by

            Hey Avin,

            Don't worry about it anymore. I flipped my personal site running WordPress over to SSL last month and I'll tell you everything I did to make it work. Thomas mentioned, "you should be forcing HTTPS", and he's right but what the Yoast plugin lacks in forcing an HTTPS redirect, you can achieve with a WordPress Plugin.

            If you want to see it working for my site, just go to http://www.kingrosales.com and watch it work

            Here's what I did:

            1. Install the WordPress HTTPS plugin. I found another plugin before this one called, HTTPS Redirection, but it didn't do the job.

            2. One of the thinks that you will also need to do is change all the hardcoded links to images within your content that may be calling the http version. If you don't, any images or embedded content from your site will cause the browser show that your site is trying to be https but some components are not, so you're gonna get a caution sign over the padlock.

            You can do one of two things to fix all these hard coded links to content within your site:

            1. Go through each page and post and change the img src to the https version.
            2. Open phpmyadmin and go run an SQL query to find and replace http with https.

            In the Yoast SEO plugin, check the Edit Files area so you can check the htaccess file. In mine, it looks like eventhough I disabled the HTTPS Redirection plugin, it has some lines in there placed above all the other rules:

            BEGIN HTTPS Redirection Plugin

            <ifmodule mod_rewrite.c="">RewriteEngine On
            RewriteCond %{HTTPS} off
            RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]</ifmodule>

            END HTTPS Redirection Plugin

            3. Lastly, install the Redirection plugin by John Godley so you can manage any other 301 redirects manually. Its an awesome tool and I wish I had installed this a long time ago. It has a log of all 404 and then you can just click the "Add Redirection" and when you scroll to the bottom (because nothing appears to happen when you click it), it will give you a form where you just have to put the URL of the new slug.

            I hope it helps!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • What is the Redirect Rule for corresponding https urls to new domain with the same https urls?
              WSIDW
              WSIDW
              0
              2
              62

            • Does it make sense to create new pages with friendlier URLs then redirect old pages to new?
              Keszi
              Keszi
              0
              3
              73

            • Why does old "Free" site ranks better than new "Optimized" site?
              WhatUpHud
              WhatUpHud
              0
              5
              100

            • New site, new URL, lots of custom content. Load it all or "trickle" it over time?
              Houses
              Houses
              0
              3
              113

            • How much is the effect of redirecting an old URL to another URL under a new domain?
              JaneCopland
              JaneCopland
              0
              4
              89

            • 301 redirect or Link back from old to new pages
              AlanBleiweiss
              AlanBleiweiss
              0
              2
              234

            • Why are new pages not being indexed, and old pages (now in robots.txt) remain in the index?
              KeriMorgret
              KeriMorgret
              0
              3
              378

            • Redirecting my new Website URL to my old Website URL
              j0a0vargas
              j0a0vargas
              0
              11
              2.3k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy