I can not do simple and does not understand what’s the problem.
I just want to create a nice looking URL.
My link looks like this:
www.mysite.com/coach/23/victor
My .htaccess file looks like this:
RewriteEngine On
RewriteRule ^([^/]*)\.html$ /index.php?p=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?p=$1&id=$2 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /index.php?p=$1&id=$2&title=$3 [L]
in functions.php file I’m trying to get information like this:
$page_type=$_GET['p'];
$page_type=$_GET['id'];
$page_type=$_GET['title'];
In index.php I include functions.php and make a switch.
switch($page_type){
case "home": include "home.php";
break;
}
You didn’t ask any question
However just by analysing this what you said. You want to go to
wowever all you rewrite rules expect
.htmlso the correct url would be