Hello! I have a problem with .htaccess and I will be very happy if you could help me!
In index.php I have
Code:
include('horizontalmenu.php')
if ($_GET['page']=='teams' and isset($_GET['name']))
{
include('includes/teams.php');
}
else
.......
************************
In horizontalmenu.php I have
Code:
$page='teams'
and $name is not a constant, it could be AC Milan, Juventus Turin etc. and I try to load the page teams.php , because the page ACMilan.php doesn't exist
<a href="'.$page.'/'.$name.'.html">...</a>
**************************
In .htaccess i have
Code:
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9]+).html$ index.php?page=$1&name=$2
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9]+)/.html$ index.php?page=$1&name=$2
**************************
In teams.php I have:
**************
So i try to change a page like this: calcioitalia2/index.php?page=teams&name=A.C. Milan in calcioitalia2/teams/A.C. Milan.html
But doesn't work! I have this message:
The requested URL /calcioitalia/teams/A.C. Milan.php was not found on this server.
What can i do? Maybe i don't know to configure these files! Thank you very much for your help!