|
|||||
|
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 |
|
|||||
|
Martin and Bagi posted good 301 redirects here: Someone may need this small redirect script
__________________
Join Busby SEO Challenge | My Busby SEO Challenge | Not Qualifed Busby SEO Challenge |
|
|||||
|
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
![]() |
|
|||||
|
Xhan, please check the redirects placing this code to the very beginning of your .htaccess file as well
Quote:
If it won't work can you post the content of your htaccess file here? Last edited by Bagi Zoltán; 01-27-2008 at 05:09 PM. |
|
|||||
|
If I understand what you're asking (having a "duh moment" here
) if you can redirectmore 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/ |
![]() |
| Bookmarks |
| Webmaster Resources |
| • UK Web Hosting • UK WW SEO Tools • Free site submission • Web Directory |
| Advertisement |
![]() |
| Site Of the Month |
![]() Nominate site of the month |
|
|
| UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons. |
| Subscribe to our feeds |