I need your help to make some url redirection using .htaccess
The case is that I have url like http://www.website.com/index.php?chID=1234 which opens particular tv channel on the website.
The problem is that I want to make these urls like http://www.website.com/channel-name/1234 (where 1234 is that chID variable, to get record from the database, of course without it would be more nice).
here is the working link – http://www.livepage.info/world-tv-channels.php?chID=1512
any suggestion will be greatly appreciated! Thank you!
To redirect all channels, you could use:
Don’t forget that you will need a new HEAD tag in your HTML (otherwise images will be fetched from
http://www.livepage.info/euronews-russia/images/...):Of course, you could use .htaccess instead. This is, however, not as good as the
base hreftag, since the client wouldn’t use the cache when viewing different channels, or if the client gets redirected, will need two requests for each image etc.