Solved

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

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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