Hello! I want to make the links friendly, but I have some problems. I want to change
www.mysite.com/index.php?page=motos in
www.mysite.com/motos.html
In .htacces I have written:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([a-z0-9_]+).html$ index.php?page=$1
but it's not enough.
I think that I make some changes in my php file, too. In my php file I have:
Code:
href="index.php?page='.$name.'"
where $name could be motos or vehicles or...
How could I change href in my php file ? With preg_replace? Thank you very much!