I need a little help with .htaccess rewrite
I need a little help with
.htaccess file. I have songs, singers and albums links I want to rewrite.
I already rewrote the links and they are like this:
- for the songs is like this:
- for singers:
- for albums:
This is the code in my
RewriteEngine on RewriteRule ^singer/([^/\.]+)/?$ /core/controller.php?singer=$1 [L] RewriteRule ^song/([^/\.]+)/?$ /core/controller.php?song=$1 [L] RewriteRule ^album/([^/\.]+)/?$ /core/controller.php?album=$1 [L]
I need the links for the songs, singers and albums to be like this:
- for songs
- for singers
- for albums
Can anyone help me with this please.