| ||
| .htacces dosyasına yazılacak RewriteEngine on # Rewrite URLs of the form 'x' to the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] ********* gelen linkimiz http://www.dizzin.com/sehirler/34 *********************************************** php dosyası ********************** <?php $url = explode("/",$_GET['q']); if (isset($url[0]) && $url[0] == 'sehirler' && isset($url[1]) && isnumeric($url[1])) { include('sehirler.php'); exit(); } //yukarıdaki if bloğunuzu oluşturacağınız klasör sayısı kadar yazmalısınız. Bu blokların hepsinden geçeni ise ana sayfaya yönlendirebilirsiniz. ?> |