Hi all,
Could really do with some help with a mod_rewrite. I'm aiming to re-structure my URLs in an existing site but I'm having problems getting things working, I'm looking at rewriting the following:
mydomain.tld/?albuminfo=generic-album-title ---------> mydomain.tld/albums/generic-album-title/
mydomain.tld/?albuminfo=another-album-title ---------> mydomain.tld/albums/another-album-title/
mydomain.tld/?artistinfo=example-artist-name ---------> mydomain.tld/artist/example-artist-name/
Plus the more tricky part which is what I'm really having problems with:
mydomain.tld/?songs=t ---------> mydomain.tld/songs/t/
mydomain.tld/?song=thesongtitle&id=45678 ---------> mydomain.tld/thesongtitle/45678/
This is what I have for the top part, but I'm losing my images/style sheets
---------------------
RewriteEngine on
RewriteRule ^([^_]+)/([^/]+)/?$ /index.php?$1=$2&$3=$4 [L]
---------------------
Anyone?