Thread: redirect 301
View Single Post
  #6 (permalink)  
Old 01-27-2008, 10:22 PM
espmartin's Avatar
espmartin espmartin is offline
Senior Member
Recent Blog:
 
Join Date: Jun 2007
Location: West Coast, USA (California)
Posts: 962
iTrader: 0 / 0%
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
espmartin will become famous soon enough
Default

If I understand what you're asking (having a "duh moment" here ) if you can redirect
more than one URI within the .htaccess, right?

Yes, but order is important. Here's what I do for a sub-domain that I'm redirecting to a
new FQDN:
Code:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
Redirect 301 /health-and-diet/puppies-and-worms.php http://www.germanshepherd-breed.org/health-and-diet/puppies-and-worms/
Redirect 301 /health-and-diet/ http://www.germanshepherd-breed.org/health-and-diet/
Redirect 301 /resources/articles.php http://www.germanshepherd-breed.org/resources/pet-articles/
Redirect 301 /resources/spay.php http://www.germanshepherd-breed.org/resources/spay-and-neuter/
Redirect 301 /resources/contact.php http://www.germanshepherd-breed.org/contact/
Reply With Quote