Hello First i tell all of you that in codelgniter framework i am new and i have a problem related to my url the url looks like this http://www.vacationplannersnetwork.com/search/name/france
but i want my URL looks like this http://www.vacationplannersnetwork.com/france
I do search engine optimization of this website so i want this type of structure ,so if anyone knows then please help me its highly recommended.thanks in advanced.
It can be done over rerouteing. In your
APPPATH . 'routes.php'
file add this line:Since you want to have first URI segment matching your results, you would need to add other specific routes before that one. For example:
Docs.
Also, don't forget to change links anchor in view files if needed (for static pages/variables).
Just use
then in
<a>
should bee