I have a problem on turning my static URL into dynamic URL. I'm planning to use .htaccess to solve this problem but it doesn't seem to work on my part.
I am also using an API to fetch the movie title and year.
how do I change my static URL [https://www.website.com/detail.html] into dynamic url: https://www.website.com/{page_title} like this: https://streamify-io.netlify.app/spirited-away-2001
here's my code but it doesn't seem to work
RewriteEngine On
RewriteRule ^([^/]+)/(\d{4})$ detail.html?movie=$1&year=$2 [L]