Howto Use URL Rewriting for PHP Web Applications


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^files/(.+)/(.+).tar.gzip download.php?section=$1&file=$2 [nc]

Would allow you to present a link as:

http://site.com/files/games/bubble.tar.gzip

and in the background have that translated to..

http://site.com/download.php?section=games&file=bubble

VN:F [1.8.5_1061]
Rating: 5.0/10 (1 vote cast)

Related posts:

  1. Top 10 Free Windows 7 Applications
  2. Ubuntu Howto: Install Sun Java
  3. .htaccess Generator
  4. Howto install HipHop for PHP on Ubuntu
  5. Howto Secure Apache
  6. iPhone Background Package
  7. Howto Install Sun Java on Debian Etch
  8. Migrate existing Ext3 filesystems to Ext4
  9. Howto Create Generate a Certificate Signing Request
  10. Howto Upgrade Joomla

Comments (8)