301 Redirect .php to .jsp (tomcat server)

Discussion in 'Site & Server Administration' started by MrThePlague, Nov 20, 2007.

  1. #1
    Currently we are switching from an apache server to a tomcat server. There are a handful of pages I would like to 301 redirect to preserve their ranking. How would I go about doing this? The IT team say that the tomcat server cannot accept .php files/code, so I'm at a loss on how to 301 redirect these pages.

    Any help would be much appreciated, thanks!
     
    MrThePlague, Nov 20, 2007 IP
  2. jexxie

    jexxie Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not too sure what you mean -- you're throwing out your old codebase?

    If you're just wanting to redirect the request to the new jsp, you could use mod_rewrite for this.
     
    jexxie, Nov 20, 2007 IP
  3. MrThePlague

    MrThePlague Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, the old codebase is being moved to .jsp ... I Googled but came up empty handed - will the tomcat server support mod_rewrite? I was under the impression that was for Apache servers.
     
    MrThePlague, Nov 20, 2007 IP
  4. jexxie

    jexxie Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm, I would assume that you would leave Apache as the frontend, and proxy the jsp requests to the Tomcat processes when needed.

    If you did via that method, you would be able to use mod_rewrite; bit more complicated though.
     
    jexxie, Nov 21, 2007 IP