For some reason I cant access the query value only for the internal rewrite in .htaccess?
Options +FollowSymLinks
RewriteEngine ON
RewriteBase /
##external redirect
RewriteCond %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^(.*)$ /test/user-profile/%1? [R=301,L]
#internal rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/(.*)$ /test/user-profile.php?id=$3 [L]
Here is the entire htaccess file. Its redirecting the url perfectly, just cant get the id value by itself? Thank you
www.example.com/test/user-profile?id=1then I want the url to be shown to user aswww.example.com/test/user-profile/1and then still have ability to pull the id value through PHP