I am trying to redirect users to profile page (profile.php)
Here is the link
And the file is located in
~/profile.php
If I run this link it works
https://dev-website.com/profile.php?username=name_of_user
Here is my script
Options +FollowSymlinks
RewriteEngine On
Options -Indexes
RewriteCond %{REQUEST_URI} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !index.html$
RewriteRule ^(.+[^/])(.*)$ https://dev-website.com/profile.php?username=$1 [L]
I get this error
Not Found
The requested URL /name_of_user was not found on this server.
Apache/2.4.7 (Ubuntu) Server at dev-website.com Port 443
Any help please