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

Posted on 2014-01-06
Medium Priority
Last Modified: 2014-01-06

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


I need to redirect the the above pages to:


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?


Question by:Rowby Goren
LVL 58

Accepted Solution

Gary earned 2000 total points
ID: 39760998
redirect 301 /banana.html http://www.newdomain.com/banana.html

Author Closing Comment

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


Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…
Suggested Courses

624 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