Change Urls and possibly hide links

Discussion in 'Apache' started by Mr.Bill, Nov 10, 2008.

  1. #1
    I have this proxy listing site and would like to change the way it displays the listed urls

    currently it shows them like this
    I would like to have them show like this if possible

    then I dont know if this can done but to hide them when you mouse over them like proxy[dot]org has them

    Thank for looking
     
    Mr.Bill, Nov 10, 2008 IP
  2. Rashy

    Rashy Peon

    Messages:
    20
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please try this (P.S. :may be wrong as i m still a beginner in mod_rewrite):
    <IfModule mod_rewrite.c>
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /

    RewriteRule ^proxy/(.*)$ count_hits.php?url=http://$1 [L]
    </IfModule>

    This will convert count_hits.php?url=http://example.com to proxy/example.com (Hopefully!)
     
    Rashy, Nov 10, 2008 IP
  3. Mr.Bill

    Mr.Bill Well-Known Member

    Messages:
    2,818
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks for the attempt didnt do anything though no errors no change.
     
    Mr.Bill, Nov 11, 2008 IP
  4. Rashy

    Rashy Peon

    Messages:
    20
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Rashy, Nov 11, 2008 IP
  5. Mr.Bill

    Mr.Bill Well-Known Member

    Messages:
    2,818
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Well with some luck one of them might see this thread and help with a solution as I dont like to randomly PM people.

    Unless someone can provide a solution :)
     
    Mr.Bill, Nov 11, 2008 IP
  6. Rashy

    Rashy Peon

    Messages:
    20
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Mr. Bill if you want something like that then you need to change the scripts URL structure to that new URL as proxy/example.com which will now be directing to count_hits.php?url=http://example.com. You can cross-check it by manually writing the URL
    http://www.sitename.com/proxy/example.com
    Code (markup):
    and if my mod_rewrite code is right then it will so the same thing as the URL
    http://www.sitename.com/count_hits.php?url=http://example.com
    Code (markup):
    does. This is the point cleared by vishwaa. So try changing the link in the script. Do correct me if i went wrong anywhere.
     
    Rashy, Nov 12, 2008 IP