Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work.
I am trying to change this url: http://domain.com/viewAlbum.php?aid=2 (any number)
to this url: http://domain.com/album/2/
Here is my .htaccess file and I dont know if I have this set up correct.
Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteRule ^album/([0-9]+)/$ viewAlbum.php?aid=$1 [NC,L] RewriteRule ^(\w+)$ http://domain.com/viewAlbum.php?aid=$1
I copied the last line of code from another thread on here.
Any suggestions would be awesome!