o wise mod_rewrite gurus

Discussion in 'Apache' started by DomainMagnate, Dec 30, 2006.

  1. #1
    so i need to redirect all visitors coming with referer url that has a string "xx" in it like htyp://somesite.com/pagexx.html to some page htyp://myothersite.com

    how do i do this? :D
     
    DomainMagnate, Dec 30, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*)XX\.html$ http://www.pictures.com/ [R=301,L]

    might do it. Would you like pictures with your yummy order??!! :D:D:D:D
     
    Nintendo, Dec 30, 2006 IP
  3. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #3
    I hope you're not refering to the pictures I'm thinking about :D

    thanks I'll try it now..
     
    DomainMagnate, Dec 30, 2006 IP
  4. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #4
    hm it didnt work :(
    well i actually need to redirect visitors that have in referer this: scripts/runner.php
     
    DomainMagnate, Dec 30, 2006 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #5
    Oh no, I'm not thinking of intestines and eyes!!! :D:D:D:D
     
    Nintendo, Dec 30, 2006 IP
  6. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #6
    If the actual URL like somesite.com/pageXX.html is what loads in the browser...if that doesn't work, I think you're toast!!!!
     
    Nintendo, Dec 30, 2006 IP
  7. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #7
    no thats the referer, like visitor comes to mysite.com from somesite.com/pageXX.html (actually somesite.com/scripts/runner.php) and i want to redirect these visitors away .. to the wacko university! ! :D :D
     
    DomainMagnate, Dec 30, 2006 IP
  8. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #8
    I don't know how to redirect people based on what site they came from!!
     
    Nintendo, Dec 30, 2006 IP
  9. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #9
    um you're not a mod_rewrite guru :D

    so .. does anyone else know :)
     
    DomainMagnate, Dec 31, 2006 IP