0

So using $_GET[]your url looks like

yourdomain.com/index.php?page=home | lets say this loads home

I want it to be

yourdomain.com/home

I don't want to have many folders with a bunch of index.php's either, I want to run everything through the index.

how would I go about doing this?

Thanks!

user229044
  • 232,980
  • 40
  • 330
  • 338
Tim O'Connell
  • 11
  • 1
  • 3

1 Answers1

0

Example:

mysite.com?var1=20&var2=this_is_a_new_article

Of course, in your index.php file you can simply take the values using

$var1 = $_GET['var1']; $var2 = $_GET['var2'];

Foster Hao
  • 132
  • 1
  • 6