Jump to content




A question somewhat related to ComputerCraft


  • You cannot reply to this topic
1 reply to this topic

#1 Zudo

  • Members
  • 800 posts
  • LocationUK

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.)

#2 distantcam

  • Members
  • 139 posts
  • LocationChunk 0

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....od_rewrite.html





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users