Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-01-06
2
Medium Priority
?
352 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

704 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