I am a newbie here, and I am not familiar with php programing. Now I want to build a dynamic pages with index.php and php navigation, a smart navigation for SEO like this.
hxxp://mydomain.com/index.php
hxxp://mydomain.com/vietnam_tour/index.php
hxxp://mydomain.com/vietnam_tour/trekking_tour/sapa_trekking.php
something like that…
In the pass I used this:
<?php
if(!isset($_GET[‘page’])){
include “ps_vietnam_tour_operator_travel_agency_welcome_page.php”;
}
elseif(isset($_GET[‘page’])){
if(file_exists(“”.$_GET[‘page’].“.php”)){
include “”.$_GET[‘page’].“.php”;
}else{
echo"<h3>Your site was not found or under contruction</h3>
<p>Hit <i>back button</i> on your Browser to go back.";
}
}else{
include “ps_firstpage.php”;
}
?>
to call file *.php in directory.
But it’s not good for indexing in search engine, not friendly at all.
Someone knows how to build a smart navigation as I want and show me how to link to page (call pages), please post here.
Thanks man
Looking for good news from you my firends online.
thank you for posting …but it’s quite hard for me while reading mod_rewrite …i am a newbie. So anyone have php navigation with the structure same same with What I want please post it here.
thanks