This is my links in website:
mywebsite.com/index.php?id_1=main&id_2=kontakt
mywebsite.com/index.php?id_1=main&id_2=onama
How to remove from url that be like this
mywebsite.com/index.php/onama
mywebsite.com/index.php/kontakt
This is my index.php and in template pocetna.php
<li><a href="index.php?id_1=main&id_2=kontakt">КОНТАКТ</a></li>
<li><a href="index.php?id_1=main&id_2=onama">О НАМА</a></li>
<?php
session_start();
require_once("configuration.php");
require_once("functions.php");
require_once("session_load.php");
//require_once("connection.php");
$url_id = get_url_value();
// ucitavanje pocetne strane, homepage
if (($url_id['grupa'] == "0") and ($url_id['stranica'] == "0")){
include_once ("includes/pocetna.php");
}
// ucitavanje formi za logovanje i registraciju profesora i admina skola
if ($url_id['grupa'] == "form"){
// ucitavanje zajednickog headera za forme za logovanje i registrovanje
include_once ("includes/form_login_register_header.php");
if ($url_id['stranica'] == "login_profesor"){
include_once ("includes/form_login_profesor.php");
}
if ($url_id['stranica'] == "login_skola"){
include_once ("includes/form_login_skola.php");
}
if ($url_id['stranica'] == "register_profesor"){
include_once ("includes/form_register_profesor.php");
}
if ($url_id['stranica'] == "register_skola"){
include_once ("includes/form_register_skola.php");
}
// ucitavanje zajednickog footera za forme za logovanje i registrovanje
include_once ("includes/form_login_register_footer.php");
}
// stranice o nama kontakt i portfolio
if ($url_id['grupa'] == "main"){
include_once ("mainpage/main_header.php"); // header sa index strane sa prijavom
if ($url_id['stranica'] == "kontakt"){
include_once ("mainpage/kontakt.php");
}
if ($url_id['stranica'] == "onama"){
include_once ("mainpage/onama.php");
include_once ("mainpage/main_footer.php"); // footer sa index strane veliki
}
if ($url_id['stranica'] == "portfolio"){
include_once ("mainpage/portfolio.php");
include_once ("mainpage/main_footer.php"); // footer sa index strane veliki
}
include_once ("includes/form_login_register_footer.php");
}
// stranice vezane za podatke koje modifikuje admin skole
if ($url_id['grupa'] == "skola"){
// ucitavanje zajednickog headera za strane gde je ulogovan admin skole
include_once ("");
if ($url_id['stranica'] == "podaci"){
include_once ("");
}
if ($url_id['stranica'] == "nastavnici_spisak"){
include_once ("");
}
if ($url_id['stranica'] == "nastavnici_dodaj"){
include_once ("");
}
if ($url_id['stranica'] == "nastavnici_portfolio"){
include_once ("");
}
if ($url_id['stranica'] == "ucenici_spisak"){
include_once ("");
}
if ($url_id['stranica'] == "ucenici_dodaj"){
include_once ("");
}
if ($url_id['stranica'] == "ucenici_obrisi"){
include_once ("");
}
if ($url_id['stranica'] == "ucenici_portfolio"){
include_once ("");
}
// ucitavanje zajednickog footera za strane gde je ulogovan admin skole
include_once ("");
}
// ucitavanje strana za obradu formi
if ($url_id['grupa'] == "submitform"){
if ($url_id['stranica'] == "login_profesor"){
include_once ("formsubmit/submitform_login_profesor.php");
}
if ($url_id['stranica'] == "login_skola"){
include_once ("formsubmit/submitform_login_skola.php");
}
if ($url_id['stranica'] == "register_profesor"){
include_once ("formsubmit/submitform_register_profesor.php");
}
if ($url_id['stranica'] == "register_skola"){
include_once ("formsubmit/submitform_register_skola.php");
}
}
//mysql_close($connection);
?>