Forum Moderators: phranque

Message Too Old, No Replies

Removing <b></b> from request

.htaccess

         

keyplyr

4:59 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



For several months now, errors are showing up from various IPs requesting various file names surrounded by bold tags:

**.***.**.*** - - [22/Jul/2004:07:53:40 -0700] "GET /<b>webpage</b>.html HTTP/1.0" 404 1375 "-" "Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; m18) Gecko/20010205"

There's never a referrer. I imagine these are coming from someone's link page that has improperly added bold tags to the text links. It has been happening often enough that I want to try a fix:

RedirectMatch 301 ^/<b> [my-domain.com...]

This gets rid of the error but I'd like to actually remove the bold tags and serve the requested file. Could I do this? Thanks.

Birdman

5:12 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here ya go:

RewriteEngine on
RewriteRule ^<b>(.*)</b>(.*)$ /$1$2 [L,R=301]

Birdman

keyplyr

7:30 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Thanks Birdman,

This is working for me as well:

RewriteRule ^(.*)<b>(.+)</b>(.*)$ /$1$2$3 [NC,R=301,L]