views:

21

answers:

1

I'm trying to setup a simple mod_rewrite for formatting "pretty URLs". All I need is for something like:

http://www.example.com/dir1/dir2/logs?page=12 to tranlate to http://www.example.com/logs/12

How would my .htaccess rule look like?

+1  A: 
RewriteRule ^/logs/(\d+)$ /dir1/dir2/logs?page=$1
aularon