wild card redirects issue giving error this webpage has a redirect loop

Posted by kath on Pro Webmasters See other posts from Pro Webmasters or by kath
Published on 2012-09-05T18:39:50Z Indexed on 2012/09/05 21:50 UTC
Read the original article Hit count: 255

Filed under:
|

In my website I changed or better word modified the directory name ""vehicles-cars"" to ""vehicles-cars-for-sale"" when i tryed to redirect using wild card redirect my old directory name to new directory name in my web hosting cpanel account. every time when i open pages from that directory i am getting error code

this webpage has a redirect loop

the website is php

the problem is that that my lots of pages from old directory are indexed in googles and they are getting duplicate contents

i really need some advice what to do with this problem

here is .htaccess file code for redirect thanks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^adsbuz\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.adsbuz\.com$

RewriteRule ^vehicles\-cars\/?(.*)$ "http\:\/\/adsbuz\.com\/vehicles\-cars\-for\-sale\/$1" [R=301,L]

© Pro Webmasters or respective owner

Related posts about php

Related posts about htaccess