htaccess - asterix!!

Discussion in 'Apache' started by m0nkeymafia, Apr 7, 2009.

  1. #1
    Hey

    I checked webmaster tools today and found that some links to my site had been messed up by ***

    So instead of the url to my site being /Free-Sexy-Stuff/ it was now /Free-***-Stuff/

    I was looking for a way to look for this specifically in htaccess and redirect to /Free-Sexy-Stuff/

    How can I do this?
    If I put *** in my htacess it dies, presumably its a bad character

    Thanks
     
    m0nkeymafia, Apr 7, 2009 IP
  2. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    I fixed it with:

    RewriteRule  ^Free-([*]{3})-Stuff/$ /Free-Sexy-Stuff/ [R=301,NS]
    Code (markup):
    Not sure how clean it is, but it works
     
    m0nkeymafia, Apr 7, 2009 IP