cancuen@gmail.com wrote:
> The thing is:
> http://www.example.com/rock/metallica
>>> to be parsed as directory when no exists>>
> http://www.example.com/index.php?gen...roup=metallica
>
> How ever all the string that follows the .com in this example I can
> make what ever I wanted with regexp, not only turn into some variables.
> What I want is to any page would be parsed with one specified page
> (except images by example, or zip files, or...).
>
> BlackSpider wrote:
>> Why not just use one php page, index.php, and use SSI, so all pages would
>> be...
>>
>> http://www.blahblah.com/index.php?page=whatever
>>
>> Like:
>>
>> <?php
>> if (isset($_GET['page'])) {
>> $request = $_GET['page'];
>>
>> if ($request == "main") { include("main.php"); }
>> else if ($request == "faq") { include("faq.php"); }
>> else { include("main.php"); }
>>
>> } else { include("main.php"); }
>>
>> ?>
>>
>
How about using the POST instead of the GET variables,.. and read a menu
from xml or soomthing like that,..
anyways it's a php issue,.. apache will NOT do POSTS etc for you in this
way to have only "seemingly" one page
apache does not handle menu structures for you.
Pete