Find solution

How to do lots of 301 Redirect (Tomcat?

Here are 24 best answers to ‘How to do lots of 301 Redirect (Tomcat?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • How to do lots of 301 Redirect (Tomcat) with complete urls

    I have several websites running on a single tomcat instance, and at application level the cms reads the domain and it is smart enough to show the right website to the user. For example I have and the cms shows the homepage for firstwebsite, while when it receives requests with the domain the cms shows the welcome page for secondwebsite. But both websites has just replaced two old website with different url structure, for example the old...


    You can use RewriteCond which tests domain and next RwriteRule will run only when RewriteCond condition...

    Mark as irrelevant Undo

Other solutions