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
Related posts:
- Top 10 Free Windows 7 Applications
- .htaccess Generator
- Compressing mysqldump output – mysql, gzip, bzip2 and LZMA (7z)
- Howto Secure Apache
- Howto install HipHop for PHP on Ubuntu
- Ubuntu Howto: Install Sun Java
- Howto: Office 2007 on Linux with Wine
- Linux Enterprise use in Denmark
- Howto Install Sun Java on Debian Etch
- Monitor Configuration Files
Popular Related Items »
Incoming search terms
- url rewriting in php
- url rewriting php
- php url rewriting
- php url rewrite
- url rewrite php
- url rewrite in php
- php rewrite url
- what is url rewriting in php
- url rewriting in php example
- rewrite url php
- rewriting url in php
- url rewriting with php
- dynamic url rewriting in php
- rewrite url in php
- url rewriting using php
- how to rewrite url in php
- url rewritting in php
- url rewriting code in php
- url rewriting php code
- php rewriting urls
- url rewriter php
- url rewrite php mysql
- url rewrite with php
- php dynamic url rewriting
- url rewriter in php
- how to do url rewriting in php
- rewriting url php
- php url rewriter
- rewrite urls in php
- url rewriting php tutorial
- how to use url rewriting in php
- urlrewriting in php
- rewrite urls with php
- how to rewrite the url in php
- url rewriting in php code
- php url rewrite mysql
- example of url rewriting in php
- how to url rewriting in php
- rewrite url with php
- php mysql url rewrite
- dynamic url rewriting php
- rewrite url php mysql
- howto url rewriting
- url rewrite howto
- url rewriting example in php

samantha said,
April 7, 2008 @ 19:07
Dear Sir,
I am very new to php programming. I want to rewrite my url. I could not have any hint from the above code. Is there anyone to help me with the full code/process. I will be very thankful.
Regards
Samantha
PHP Coder said,
April 8, 2008 @ 8:59
Hello Samantha,
The shown example will require that you create a PHP file called download.php and that this file use two variables from the querystring; section and file.
And add the folowing code to your .htaccess file
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^files/(.+)/(.+).tar.gzip download.php?section=$1&file=$2 [nc]
nani said,
June 19, 2008 @ 8:30
Hi
I want to rewrite url for site http://www.pakpressads.com/.
Can u help me in this
Regards
Aisha Junejo said,
July 26, 2008 @ 7:08
Hi
I have some problem regarding .htaccess,I have to do folder based Url rewriting in my site.I have also tried the 3rd rule that you have written.
RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1
But when I use it on any page of my site,all the images on that page are not being displayed.
Can you please help me a little to get out of this problem?
Neeraj said,
September 19, 2008 @ 6:54
Ok its work..
but how can i change uri in my files automatic?
please help me.
Rahul said,
March 5, 2009 @ 10:48
I have the same problem like
Aisha Junejo said
Is there any solution Please
Rahul said,
May 4, 2009 @ 10:51
Very nice blog.keep it up.
Howto Use URL Rewriting for PHP Web Applications said,
June 1, 2009 @ 17:48
[...] from: Howto Use URL Rewriting for PHP Web Applications Share and [...]