Like on the title, I'm looking for a way to change a url with parameters (from this www.animevid.net/player/?anime=d/dmc to this www.animevid.net/player/anime/d/dmc) using the .htaccess file.
I've found many similar post but I've only got errors, loop redirect, or...nothing. The nearest thing i've got is this code :
RewriteRule ^player/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+) player/index.html?anime=$1&t=$2 [NC,L]
Also please note the "d/dmc" on "?anime=d/dmc", is a variable, another example is "c/codegeass", "s/sao" etc...
www.animevid.net/player/?anime=d/dmcis not a valid url. Probably it will often work, since clients and servers try to be fault tolerant. But the/in thed/dmcmust be encoded in a URL. This is probably your primary issue here. How do you want to catch thed/dmcwith that pattern[0-9a-zA-Z_-]+? That cannot work.../inside an argument. But it has to be escaped, otherwise it has another meaning. See the correct URL I posted in my answer below. What you receive on the server side (inside php for example) is the/you desire with such encoding.