Solved

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

Posted on 2014-01-06
2
338 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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