Forum Moderators: phranque

Message Too Old, No Replies

Specific redirect query

A rule to redirect similar pages

         

TigerSBT

3:06 am on Mar 14, 2008 (gmt 0)

10+ Year Member



Hi,

I have recently taken over a new site that has been scraping news from various sources. The news is just one sentence of text with a link and I would prefer to redirect all of these pages to home if possible, there are over 10,000 of these!

The urls that I want to remove are all in this form

http://www.example.com/news-1273798372.html

Is there a wildcard command that could redirect all the pages after mysite.com/news-* to the root?

Thanks in advance!

[edited by: jdMorgan at 3:20 am (utc) on Mar. 14, 2008]
[edit reason] example.com [/edit]

jdMorgan

3:20 am on Mar 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache mod_alias, RedirectMatch directive.
Or see Apache mod_rewrite, RewriteRule directive.

Our Forum charter and our Library may be of interest to you as well.

Jim