Now i have 404 error when users come from google on my site , also google webmaster tools report me about this error, how i can redirect old url to new one with htaccess…
Sp i need just redirect htxp://site.com/news/183/Blue+Lagoon to htxp://site.com/news/183
WHY would you use (.*) before news? WHY would you specify / followed by nothing or anything after the digits when all you need is the set of digits to be matched?
RewriteEngine on
RewriteRule ^news/([\\d]+)/? news/$1 [R=301,L]
How is that any differrent? My redirection from the DocumentRoot is directly into your news directory as you have it, too. The only thing that your external redirection does is to remove a possible www. subdomain which was not part of your specification. If it is (suddenly), it needs to be handled separately and, preferably, before this redirection.
You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It’s helped may members and should help you, too.