Welcome Guest, Not a member yet? Register   Sign In
Route Big Question
#1

Hi. It is possible to make a route like this:
PHP Code:
$route['search/(:any)/(:any)/(:any)/?search=(:any)'] = 'servers/search/$1/$2/$3/?search=$4'// Search by Type / Game / Location / Keywords 


I have a script like GameTracker (if you know the website) and I would like to create a search with some features. But, also I would like to let visitors to query by words. My question: How can I make an URL which allows me to query even words ?
Example:

PHP Code:
http://localhost/search/nameorip/csgo/UK/?search=codeigniter.com 


Any idea ? I need to write .htaccess ?

P.S: I try to rewrite this script with Codeigniter. When was raw PHP I had this code:

PHP Code:
RewriteCond %{QUERY_STRING} ^matching=([^&]+)$ [NC]
RewriteRule   ^search/([a-z0-9_]+)/([A-Z_]+)/([a-z]+)/?$ servers.php?game=$1&location=$2&query_by=$3&matching=%[NC,L
Reply


Messages In This Thread
Route Big Question - by gaska96 - 05-10-2016, 11:00 AM
RE: Route Big Question - by albertleao - 05-10-2016, 11:21 AM
RE: Route Big Question - by gaska96 - 05-10-2016, 11:28 AM
RE: Route Big Question - by Wouter60 - 05-10-2016, 11:48 AM
RE: Route Big Question - by gaska96 - 05-11-2016, 06:29 AM
RE: Route Big Question - by InsiteFX - 05-11-2016, 10:13 AM
RE: Route Big Question - by gaska96 - 05-11-2016, 12:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB