Forum Moderators: phranque

Message Too Old, No Replies

overture/ yahoo paid search adding junk how to compensate for it.

using the .htaccess file

         

tqatsju

4:45 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



ok i have a rule as follows

RewriteRule ^(concerts¦theatre¦misc)/*$ allcats.php?e_type=$1 [L]

basically it directs any requests for blah.com/theatre, blah.com/concerts, blah.com/misc with or without the slash to allcats.php?e_type=blah. Well yahoo search marketing (overture) add something along the lines of blah.com/concerts/&OVERAW=blah&OTHER=blah which breaks this htaccess rule, i want to be able to compensate for this, at least momentarily while i get them to remove the crap on the end which is obviously wrong because they aren't adding a "?". I tried this which i thought would work

RewriteRule ^(concerts¦theatre¦misc)/(*$)¦(&.*) allcats.php?e_type=$1 [L]

but that broke the rule and i got an internal server error....

any ideas or should i just wait until the remove it?

thanks, tom

jdMorgan

5:48 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd suggest:

# Redirect to force removal of added junk on URL from search engine databases
RewriteRule ^(concerts¦theatre¦misc)/& http://www.example.com/$1/ [R=301,L]
# Rewrite static URLs to invoke the allcats script
RewriteRule ^(concerts¦theatre¦misc)/?$ allcats.php?e_type=$1 [L]

Replace all broken pipe "¦" characters above with solid pipes before use; Posting on this board modifies them.

Jim