I have a URL that looks like this: http://example.com/board?b=utst
(there are a couple variations of similar URLs). However, I want it to look like this: http://example.com/board/utst/
. How would I go about doing this? I haven't tried much, but I'm not even sure where to start.
Asked
Active
Viewed 28 times
0

Bond
- 16,071
- 6
- 30
- 53

dubstaphone
- 19
- 2
-
it's called a mod rewrite – Funk Forty Niner Jul 31 '15 at 02:30
-
2Search for ["URL rewrite"](http://stackoverflow.com/search?q=%5Bphp%5D+url+rewrite). There are no shortages of examples online; or similar questions. (Code would generate the pretty URL and, upon a request, mod_rewrite turns the pretty URL back into the 'ugly URL' which is processed by PHP.) – user2864740 Jul 31 '15 at 02:30
-
awesome, thank you both! – dubstaphone Jul 31 '15 at 02:33
-
Please post ur comment as answer. It's worth. Tnx – spiderman Jul 31 '15 at 02:34