htaccess rewriting not working in Concrete5.8.3.1

Permalink
Hello Team,

We have developed a website in Concrete5.8.3.1. We have a single page where we are showing details of particular object. The url of single page is "/training/detail/1". Now I want to make some seo friendly url so if we type /alle-opleidingen/1 it must call /training/detail/1. I created a htaccess file in root and below is my code :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^/alle-opleidingen/(.*)$ /training/detail/$1 [L]
RewriteRule ^/test$ /contact [L]
RewriteRule . index.php [L]
</IfModule>

When I type /alle-opleidingen/1 in url concrete return me 404 error. I also tried some basic rewriting like '/test' should call '/contact' but it also not work. Can you please suggest me what I have to do ?

Thanks

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Try
RewriteRule ^/alle-opleidingen/(.*)$ /training/detail/$1 [R=301,NC,L]
RewriteRule ^/test$ /contact [R=301,NC,L]
akashsmartshore replied on at Permalink Reply
I tried the mentioned code but it redirect the page to url. If I type "/test" in url then system redirect me "/contact" so the address bar url is also changed. I don't want to change the url I only want to rewrite the request. Any solution ?

Thanks
akashsmartshore replied on at Permalink Reply
Is there any update on previous comment?
jasteele12 replied on at Permalink Reply
jasteele12
If you don't want the URL to change, then you should probably look into custom routes.

Take a look at some of the Route::register() examples in applicatioin/bootstrap/app.php