I want to make the URL as SEO friendly. The following URL (#1) is working fine but I want to make the url like (#2) also when I enter this url it's going to 404 page
Please let me know that how can I do this.
You can create custom redirect using following functionality:
If you don't want to make redirection: in that case you'll have to implement custom router, which is not something you can do by changing configuration. You'll have to implement it, and here is proof of concept how it can be done: