i need to do something like that:
i have X number of pages like that :
MyPage.php?var=1
i want to show a friendly URL like this /MyFolder/blabla or something..
so its easy im already trying this :
Code:
RewriteRule ^MyFolder/ /MyPage.php?var=1 [L]
BUT :
in MyPage.php i have a form :
Code:
<form action="<?=$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];?>" method="post" name="navigation" id="navigation">
PHP_SELF = MyPage.php?var=1 and NOT MyFolder/
is there a way to tell apache there is a rule about that or should i wrap something from my php file?
im asking because i have aroud 200 pages
thanks
Luke