Solved

301 redirect via ntaccess one page on a domain to another domaiun

Posted on 2014-01-06
2
346 Views
Last Modified: 2014-01-06
Hi

I had a bunch of notes on how to do this, but I can't find them.  So I thought I'd get a quick answer here!

I have a few pages like this

http://www.olddomain.com/banana.html
http://www.olddomain.com/apple.html

I need to redirect the the above pages to:

http://www.newdomain.com/banana.html
http://www.newsdomain.com/apple.html

The above are the only pages I want to redirect.  The rest of the pages on olddomain.com I want to stay the same.  Just banana.html and apple html
Later on I may want to add a few more pages, using the same rules

How do I write the 301 redirects via htaccess?

Thanks!

...Rowby
0
Comment
Question by:Rowby Goren
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39760998
redirect 301 /banana.html http://www.newdomain.com/banana.html
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39761010
Thanks,  cathal!  That did it

Rowby
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing Sitemap Frequency on XML File 3 83
PHP in Apache server 20 106
Configure a Local PHP Interpreter for Phpstorm 2 512
Reverse Proxy problem 3 36
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question