Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

VitaminD3

Registered
  • Content count

    1
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

1 Neutral

About VitaminD3

  • Rank
    New Botter
  1. May as well post the best solution to this... You need to create a .htaccess file in the root of your webserver (i.e. /var/www/html/). Note the "." at the start of the file name - Windows users will have to use an FTP client or similar to rename the file. Inside the file put: RewriteEngine OnRewriteRule ^sig\.png sig.phpThis means when example.com/sig.png is loaded, the server will request sig.php instead, so your PHP script should output the correct headers: header('Content-Type: image/png');You can also take this a step further and use regular expressions to match strings and patterns and can pass parameters to your PHP script: RewriteEngine OnRewriteRule ^sig/(.+?)\.png sig.php?user=$1This will make example.com/sig/VitaminD3.png load the script sig.php?user=VitaminD3