ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Preserving URLs when switching platforms

June 25, 2007 1:41pm

Subscribe [2]
  • #1 / Jun 25, 2007 1:41pm

    I’ve got a client who wants—as best as possible—to preserve his site’s URL structure when migrating to EE. The objective is to preserve the Google rankings/indexing associated with specific URLs.

    I don’t see this as a major problem but for one thing: many of their URLs have a .jsp extension.

    Is there a way to do a universal rewrite on the .jsp extension using an .htaccess instruction or something?

    Any thoughts about approach or strategy are very much appreciated.

  • #2 / Jun 25, 2007 1:46pm

    Ingmar

    29245 posts

    Just keep the extension. I recently did something like that with .php. Just make sure it doen’s actually get parsed, but EE doesn’t care about the name.

  • #3 / Jun 25, 2007 1:54pm

    Interesting.

    So in the URL field of the entry, you’d simple tack .jsp on the end? How would you prevent the parsing?

  • #4 / Jun 25, 2007 2:03pm

    Ingmar

    29245 posts

    See this thread for details. Basically, whenever a .jsp (or .php, in my case) file would be called, I’d have mod_rewrite remove the extension.

    The parsing is a server issue, just make sure Apache (or whatever) is not really expecting .jsp files; this would unnecessarily hamper server performance.

  • #5 / Jun 25, 2007 2:16pm

    Nice one. I’ll have a look at that if the client insists that this is the way they do things. Thanks for the tips, Ingmar.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases