Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7010059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:56:32+00:00 2026-05-27T21:56:32+00:00

We were previously using a non-search engine friendly custom CMS for our case record

  • 0

We were previously using a non-search engine friendly custom CMS for our case record systems. We are planning to migrate to WordPress. As we have several links pointing to our previous install we want to keep them live in a new domain.

Fortunately, all our links in the previous CMS were in the format http://www.example.com/cases/the-case-number.

We are now thinking of how to implement it. I think we have two solutions:

  1. Either put a redirect_to_old() function at top of our WordPress header to get the current URL on each page load and if the URL request matches “/cases/” then redirect to the previous CMS using header("Location: $URL");. This is implemented now.

     function redirect_to_old(){
     $requestUrl = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
     if (stripos($requestUrl, "/cases/")!== false){
        $URLpart = explode("/cases/",$requestUrl);
        $newURL = "http://sub.xyz.com/cases/".$URLpart[1];
        header("Location: $newURL"); /* Redirect browser */
        exit;
     }else{
        return true;
     }  
     }
    
  2. To use some .htaccess code and do the redirect. But I am not an expert with .htaccess.

Do I have to add a 301 error before the redirect? And are there any bad consequences in terms of SEO if we do a redirect like this? The major purpose of this migration is SEO.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:56:33+00:00Added an answer on May 27, 2026 at 9:56 pm

    what is your suggestions,please advice.

    Use 301 redirect via .htaccess (You needn’t even try to search index.php if You know, that URL is old, yeah?). Here’s some example, I hope it will be useful for You

    RewriteEngine On
    Redirect 301 /cases/the-case-number http://newdomain.com/cases_the-case-number.html
    

    Do I have to add a 301 error before the redirect?

    Yes. Search Engine must know, that this redirect is permanent

    Is there any bad consequences in terms of SEO if we do a redirect like
    this? because the major purpose of this migration is SEO.

    Nope, that’s ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

previously i was using picture box and its built in utilities to draw some
Jeff has previously blogged about using the cache to perform "out of band" processing
I'm developing a graph control in WPF. I have previously developed it using GDI
Previously when I browsed source code files using Xcode's file browser (located on left
Previously within my Fitnesse fixture I was specifying an expected WCF exception using: exception[FaultException]
Previously, I am using STL map to perform the mentioned task. struct ltstr {
I have previously written user interfaces using .NET and Windows Forms. I'm about to
Using VB 6 Once I run the project, How to display a previously selected
I would like to decrypt a file that I previously encrypted with C# using
I have a database with existing data, where previously I've been using AUTO_INCREMENT on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.