I try to add a rule to my htaccess to make it possible for me to route all article urls to be loaded by the same file.
Input: localhost/Project/article/my-test-article
Output: localhost/Project/article.php?id=my-test-article
I'm currently using this code... Which works:
#Enable backend url rewriting
Options +FollowSymLinks
RewriteEngine On
RewriteBase /Project/
#Route articles
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^artikkel/(.*)$ article.php?id=$1 [R]
Problem is, I don't want the user to be able to SEE the ?id=my-test-article
!
I don't want the url to change at all, really.
I just need it to always load the same file all the time!
What would I have to do to accomplish that? I'm using WAMP.