-7

How I can change link from

www.example.com/index.php?id=123&g=123

to

www.example.com/index/id/123/g/123

?

Thank you :)

Edit: Please don't tell me "use mod rewrite", tell me how to use it :D

php12345
  • 133
  • 1
  • 2
  • 5
  • `htaccess` `mod_rewrite` `rewriterule` might be helpful research tags for you – Davit Mar 18 '13 at 00:17
  • possible duplicate http://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess http://stackoverflow.com/questions/12138697/htaccess-rewrite-php-to-virtual-folder – Mate Mar 18 '13 at 00:18
  • 1
    `tell me how to use it` - how about you tell us what you have tried? – DaveRandom Mar 18 '13 at 00:28

2 Answers2

1

You want to use URL Rewriting. See this article to accomplish that:

http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

letiagoalves
  • 11,224
  • 4
  • 40
  • 66
0

You can do a mod rewrite (change .htaccess file)

CrayonViolent
  • 32,111
  • 5
  • 56
  • 79