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. How do I redirect my old PHP website to my new Java website?

    How do I redirect my old PHP website to my new Java website?

    Intermediate & Advanced SEO
    2 2 79
    • 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.
    • puamethod
      puamethod last edited by

      Please could you help?

      My old website is written in php.  I've created a new design of the website in Java.  I'll be using the same domain name though.

      example.com

      and I'd like to pass my link juice to my new redesigned website.  When I turn the domain name to point to my new website how do I make sure pages that are ranked in google that don't exist on my new website transfer 301 from my old website to a similar page on my new website.

      Old Website Example

      example.com/bootcampuk.php

      New Website Example

      example.com/bootcamps.jsp

      Many Thanks,

      Rob

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

        Hi Rob,

        I would recommend using htaccess 301 redirects. If you're not currently using htaccess you just need to create a file in your website's root folder and name it .htaccess and jsut add a 301 redirect line for each redirect that you want to do. See below for example.

        Redirect 301 /bootcampuk.php /bootcamps.jsp

        So it's Redirect 301 Old-Url New-Url

        Let me know if you have any questions!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • How long will old pages stay in Google's cache index. We have a new site that is two months old but we are seeing old pages even though we used 301 redirects.
          DonnaDuncan
          DonnaDuncan
          0
          3
          81

        • Moving site to new domain without access to redirect from old to new. How can I do this with as little loss to SERP results as possible?
          c_estep_tcbguy
          c_estep_tcbguy
          0
          11
          83

        • How Can I Redirect an Old Domain to Our New Domain in .htaccess?
          brettmandoes
          brettmandoes
          0
          4
          3.6k

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

        • Should we 301 redirect old events pages on a website?
          max.favilli
          max.favilli
          0
          3
          334

        • New website from scratch and redirects or maintaining domain?
          Matt-Williamson
          Matt-Williamson
          0
          2
          241

        • Old Redirecting Website Still Showing In SERPs
          wojkwasi
          wojkwasi
          1
          3
          612

        • 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