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
Related Q & A:
- How do I write a search page?Best solution by Stack Overflow
- How do I check a type is of a specific template?Best solution by Stack Overflow
- How can I make a download page?Best solution by Stack Overflow
- How do I create a landing page for my website?Best solution by Yahoo! Answers
- How can I block a specific web page?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.