The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

redirect 301

xhan

<span style="color: white; font-weight: 700; backg
affiliate
Can you do more than one 301 redirect in .htaccess?

I've started using EE - but it adds /blog/comments onto my permalinks - I have quite a bit of traffic coming in from the same url but without the /blog/comments so I need to redirect those ones to the /blog/comments urls
 
Of course you may list endless redirects into a single htaccess, and you may create redirect rules as well, but i can't understand your problem properly:(
 
Of course you may list endless redirects into a single htaccess, and you may create redirect rules as well, but i can't understand your problem properly:(

I had more than one 301 redirect and I kept getting internal server errors :s
 
Xhan, please check the redirects placing this code to the very beginning of your .htaccess file as well
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
It may solve your problem at the given server.

If it won't work can you post the content of your htaccess file here?
 
Last edited:
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/
 
banners
Back