This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Zudo's profile picture

A question somewhat related to ComputerCraft

Started by Zudo, 30 December 2013 - 06:09 AM
Zudo #1
Posted 30 December 2013 - 07:09 AM
Hi. I am using PHP on my dev server, and I have noticed that people can use URLs like this:


https://minotar.net/avatar/z_hackz

Does anyone know how I can do something like this:


http://localhost/user/z_hackz

rather than


http://localhost/user.php?u=z_hackz

?

(Sorry, I am bad at explaining stuff.)
distantcam #2
Posted 30 December 2013 - 07:14 AM
I'm guessing your web server is apache, so what you're after is mod_rewrite.

http://httpd.apache.org/docs/current/mod/mod_rewrite.html