I have setup a website with recipes but in the process of migration OLD urls to NEW urls I'm facing issues with.

<https://example.com/recipes/cheesy-baked-tacos/>

This is my old URL structure and In a wordpress site I need to extract last part of the URL "cheesy-baked-tacos" and handle that in the template I use for recipes page. 

Now when i click on the URL it goes to 404 page even though recipes page has setup.

I tried following htaccess rules but have no success

```
RewriteBase /
RewriteRule ^recipes/(.*)$ index.php?l=$1

```

Thanks in Advance.

Full htaccess file looks like this 

```
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^recipes/(.*)$ index.php?l=$1
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

```