0

I've seen that you can pass inputs into the url, for example:

http://mydomain/search/everythingiwanthere/

and instead of a 404 page, you get a search page with everythingiwanthere as search input. This is a real example: http://www.gearbest.com/everythingiwanthere-_gear/ , you can put any word instead of everythingiwanthere and the site will search for that word.

I know I can use $_GET and a php script to do that

http://mydomain/search/?s=everythingiwanthere

but I want to use the method above. I don't know how it's called, neither how it's done. Can you please explain to me? Thank you.

Franz Tesca
  • 245
  • 1
  • 5
  • 18
  • once you have read the dupe and done your own research, if you have a new question, having tried some code, feel free to again again –  Jun 16 '16 at 22:06

1 Answers1

0

Look up mod_rewrite on Google. This should help you on the way.

L Ja
  • 1,233
  • 8
  • 20