Wassup! I'm creating a website with ticket systems, and when you press a button you should get redirected to a page with the information of that ticket. I want to grab the information with PHP, but how should i structure the link.
If possible, I want the link to be like ###/tickets/TICKETID.
But then it gives me a "Internal Server Error". I'm not sure what's causing that.
And then, I need to be able to grab the ID from the link, the rest I know how to do.
Keep in mind that I'm restructuring the links via .htaccess:
htaccess
# extention rewrite starts here (mod_rewrite) #
RewriteEngine on
# HTML Extensions #
# do not apply to directories
RewriteCond %{REQUEST_FILENAME} !-d
# check for file in directory, with .html extensions
RewriteCond %{REQUEST_FILENAME}\.html -f
# show the page that has the .html extension
RewriteRule ^(.*)$ $1.html [NC,L]
# PHP Extensions #
# do not apply to directories
RewriteCond %{REQUEST_FILENAME} !-d
# check for file in directory, with .html extensions
RewriteCond %{REQUEST_FILENAME}\.php -f
# show the page that has the .html extension
RewriteRule ^(.*)$ $1.php [NC,L]
I'm grateful for any help!
TIP: