Forum Moderators: phranque
RewriteEngine On
# Redirect non-www to www:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index\.html
RewriteRule ^(.*)index.html$ /$1 [R=301,L]
Redirect 301 /audio/song.mp3 http://www.example.com
Is this code valid:
not sure what a hotlink is...but a lot of websites directly linked to the mp3.