Trying to make a website more search engine friendly, have done some readning that routing with .htaccess is a good way to go.
I have a path called: mydomain.net/forum Under there I have category, items and posts.
I whould like to have mydomain.net/forum/boats/laws/this-is-a-post-about-laws
In .htaccess I have tried:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule forum/^(.*)$ forum/index.php?page=$1 [L,QSA]
In my file/forum.php
$route = explode('/',$_GET['page']);
$sidepage = isset($route[0]) ? $route[0] : null;
$kat = isset($route[1]) ? $route[1] : null;
$emne = isset($route[2]) ? $route[2] : null;
Anyone could point me in the correct way to get this? Without affecting mydomain.net/index.php and the other sub-folders yet :)