mysql - Renaming PHP files to something other than .php -


this might seem easy answer cant seem wrap head around it. how rename files? instance if wanted rename index.php "home" or something. how go doing that?

also, how rename user pages? instead of example.com/profile.php?id=28, example.com/users/mrexample

thanks bunch guys!

assuming want keep existing file structure on server , present pretty urls described, called url routing. if you're using apache mod_rewrite way go. lighttpd supports rewrites. believe commercial rewrite plugin available iis.

you can either create set of rewrite rules match url queries , pass them on relevant php file, or have single rewrite rule forwards requests single php script calls appropriate function/script/template/include.

hope helps


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -