<?php else{ if ( $_site = $_GET['site']; $zapytanie = "SELECT * FROM `pages` WHERE `alias`='".$_site."'"; if( $tresc = $wiersz['opis']; $nazwa = $wiersz['nazwa']; } print ' <div class="pLewa"> <div class="title">'.$nazwa.'</div> <div class="contentText">'.$tresc.'</div> </div> '; } else { include_once("_inc/pages/home.php"); }} ?>
no i htaccess mój wyglada tak
Kod
Options +FollowSymLinks
RewriteEngine on
RewriteRule index.html$ index.php [L]
RewriteRule ([^-]*).html$ index.php?ak=$1 [L]
RewriteRule p.html,([^-]*)$ index.php?site=$1 [L]
RewriteRule news.html,([^-]*)$ index.php?ak=news&id=$1 [L]
RewriteEngine on
RewriteRule index.html$ index.php [L]
RewriteRule ([^-]*).html$ index.php?ak=$1 [L]
RewriteRule p.html,([^-]*)$ index.php?site=$1 [L]
RewriteRule news.html,([^-]*)$ index.php?ak=news&id=$1 [L]
problem jest następujący jak zrobić by podstrona mogła mieć adres p.html,moj-wpis a nie tak jak teraz p.html,moj_wpis