How to do lots of 301 Redirect (Tomcat?

How do I exclude a specific page of a site from 301 redirect?

  • I have 301 redirect on my old domain to my new domain, this 301 affect all pages and files on the site. Now, the issue is that for a specific page i do not want to use 301 redirect. So how do i add an exception for this specific page e.g  site .com /xyz, how do i put an exception to exclude this page in my 301 redirect.

  • Answer:

    In Apache, you can do this with the following rewrite rule in the .htaccess file: RewriteEngine On RewriteRule ^page-that-stays.html$ - [L] This must appear before the rule that redirects the rest of the site.

Steve Harmeyer at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.