#PHP Links

3 messages · Page 1 of 1 (latest)

hearty estuary
#

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!

young briarBOT
#

Hi there 👋
Thank you for creating a post on our Community Forum. Please keep in mind that we don't provide official support on Discord. This is a forum for the community, by the community. Meaning that help is not guaranteed. Now let's wait and see if someone of our lovely community can help you out!

newtip TIP:

Need actual official support? Reach out to our customer care. zaplivechat

young briarBOT
#

💤 It's been a while and it looks like nobody is around or able to help you with this...
If you require actual official support please reach out to our support team. zaplivechat