So I tried to rewrite an url from http://project2.local/camera?camera_id=1 to http://project2.local/camera/1 in .htaccess... Now every time I add the .htaccess lines:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
# Here we rewrite the camera link
# RewriteRule ^camera/([^/]*)$ /camera?camera_id=$1 [L]
# RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /camera\.php\?camera_id=([^\&\ ]+)
# RewriteRule ^/?camera\.php$ /camera/%1? [L,R=301]
# specific rule
RewriteCond %{QUERY_STRING} ^([^=]+)=([^&]+)
RewriteRule ^(camera)$ /camera.php?camera_id=$1 [L]
I get the error Notice: Undefined index: camera_id. Now I just try to GET the query string, but it doesn't work, like never?
What causes this issue?