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
        • New Site (redesign) Launched Without 301 Redirects to New Pages - Too Late to Add Redirects?
          BeanstalkIM
          BeanstalkIM
          0
          8
          732

        • Domain switch planned - new domain accessible - until the switch: redirect from new to old domain with 307?
          comicron
          comicron
          0
          6
          144

        • Client rebranded with a new website but can't migrate now defunct franchise website to new website.
          Paddy_Moogan
          Paddy_Moogan
          0
          4
          122

        • 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

        • Redirect old .net domain to new .com domain
          BrandLabs
          BrandLabs
          0
          4
          2.6k

        • Splitting one Website into 2 Different New Websites with 301 redirects, help?
          AdamThompson
          AdamThompson
          0
          5
          3.5k

        • Pros and Cons of new subdomain and redirecting old subdomain?
          Lindsay
          Lindsay
          0
          4
          615

        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