Webmaster Forum
Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum - UKWW > Web Design and Website Development > Programming
Register FAQ Members List Downloads Calendar Today's Posts Webmaster Resources Webmaster Blogs

UK Web Hosting
UK Web Hosting
Website Hosting
Website Hosting
UK One Way
UK One Way
Free Website Thumbnail Creator
 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2008, 09:13 PM
xhan's Avatar
Design Photo & Graphics Admin
Recent Blog: Plurk!
 
Join Date: Jan 2008
Location: London/Kent
Posts: 474
iTrader: 0 / 0%
xhan is on a distinguished road
Send a message via AIM to xhan Send a message via MSN to xhan Send a message via Yahoo to xhan
Default redirect 301

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
__________________
Blog | Portfolio | Twitter

Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-27-2008, 03:09 PM
BenjArriola's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Manila and San Diego
Posts: 134
iTrader: 0 / 0%
BenjArriola is on a distinguished road
Send a message via ICQ to BenjArriola Send a message via AIM to BenjArriola Send a message via MSN to BenjArriola Send a message via Yahoo to BenjArriola Send a message via Skype™ to BenjArriola
Default

Martin and Bagi posted good 301 redirects here: Someone may need this small redirect script
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-27-2008, 03:11 PM
Bagi Zoltán's Avatar
Boss Cart consultant
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,549
iTrader: 9 / 100%
Bagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud of
Default

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
__________________
Time may come when you will need a shopping cart
Hungarian online marketing fórum keresőoptimalizálás
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-27-2008, 04:44 PM
xhan's Avatar
Design Photo & Graphics Admin
Recent Blog: Plurk!
 
Join Date: Jan 2008
Location: London/Kent
Posts: 474
iTrader: 0 / 0%
xhan is on a distinguished road
Send a message via AIM to xhan Send a message via MSN to xhan Send a message via Yahoo to xhan
Default

Quote:
Originally Posted by Bagi Zoltán View Post
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
__________________
Blog | Portfolio | Twitter

Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-27-2008, 04:59 PM
Bagi Zoltán's Avatar
Boss Cart consultant
 
Join Date: Feb 2007
Location: Veszprém, Hungary
Posts: 1,549
iTrader: 9 / 100%
Bagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud ofBagi Zoltán has much to be proud of
Default

Xhan, please check the redirects placing this code to the very beginning of your .htaccess file as well
Quote:
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?
__________________
Time may come when you will need a shopping cart
Hungarian online marketing fórum keresőoptimalizálás

Last edited by Bagi Zoltán; 01-27-2008 at 05:09 PM.
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-27-2008, 11:22 PM
espmartin's Avatar
Senior Member
 
Join Date: Jun 2007
Location: West Coast, USA (California)
Posts: 962
iTrader: 0 / 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/
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
Reply

Bookmarks

Webmaster Resources
UK Web Hosting
UK WW SEO Tools
Free site submission
Web Directory
 
Advertisement
Get top 10 exposure
 
Site Of the Month
BizzFace
Nominate site of the month
 
Tag Cloud
2 column 2 columns 301 addtype advice bbpress bid bidding directory blog post british telecom broadband cheap chip maker community coupon code designs directory domain for sale domain name ecommerce ecommerce information ecommerce poll edegra fibre optic forum fraud free free portal script free script generate revenue generic viagra google graphics heaven intel internet spending james in london kamagra keywords layout link exchange links wanted linux and windows server local search modeling monopoly online retail online spending optimising owg in london parking photography php picture of the day purple robots.txt scour scripts search engine search quality site promotion special discount speed cameras submission theme usability web hosting website win a network wordpress

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



All times are GMT. The time now is 10:44 AM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150