I post it again since noone answered !
I'm right now using javascript to have a frameset that changes url acording to each page. I would like to use php instead, so that each url would look like http://www.mysite.com/?mypage
or http://www.mysite.com/#mypage
This is what i have on each page :
if (document.layers && (self.innerHeight == 0 && self.innerWidth == 0)) return;
{ var newURL = 'http://www.mysite.com/#' + self.location.pathname.slice(1,-4) ;
if (document.images) top.location.replace(newURL);
else top.location.href = newURL; }
And this is my frameset :
<SCRIPT LANGUAGE="javascript">
var initialPage = "main";
if (location.hash != "")
{ initialPage = (location.hash).substring(1); }
document.write('<frameset cols=170,* frameborder=NO border=0 framespacing=0>');
document.write('<frame src=Menu.htm noresize scrolling=no name="Menu">');
document.write('<FRAME SRC="' + initialPage + '.htm" NAME="Cadre">');
document.write('</FRAMESET>'); </SCRIPT>