The requested URL was not found on the server

I have installed Slim3 in linux machine using composer.
i have created index.php file.

Now if i will try to access root dir it will give me “Welcome back” message but if i will try to access “/profile/Name” it is throwing “Not Found” error in the browser.

This is my .htaccess file

Have you checked if the AllowOverride option is set and the .htaccess file is used by Apache?

Yes i have added that in httpd.config
This is my code and i am sure my apache server is using .htacces file of my folder because if i will give root dir of project in URL then it is working but whenever i am giving some arguments like “profile/brijesh” then only it is throwing Not Found.

Try with this in the .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

The default page not found page delivered by Slim looks different from the page you are getting:

You can check if index.php is called by replacing the contents of index.php with something simple, e.g.:

<p>index.php is called.</p>