You can add your first subpage with custom URL.
- Find file yourcode.php.
- Open yourcode.php to edit your new webpage.
- Add code:
<?php $seo=new headerSeo; //add minimal seo and create opening HTML tag $seo->encode(); //add page encoding to UTF-8 $seo->robots(); //add support for bots control echo $seo->save(); //generate meta tags ?> <body> <?php switch(PAGE) { //create new subpage by case case 'my-first-subpage': case '/my-first-subpage': echo 'HELLO SUBPAGE'; break; //create homepage / landing page case '': case '/': echo 'HELLO WORLD'; break; //create custom 404 page default: echo 'MY 404 PAGE'; } ?> </body> </html>
- Save yourcode.php and open your example.com first page where is installed OpenSencillo.
- Check example.com/my-first-subpage new subpage with pretty URL.