.htaccess kodum bu şekilde;
kalın olan yer hariç tüm bölümler çalışıyor.
site.com/deneme.html olarak girmeye çalıştığımda 404 hatası alıyorum.
RewriteRule ^/(.*?).html$ index.php?sayfa=anahtardetay&anahtardetay=$1 [L,QSA] RewriteRule ^/$ index.php?sayfa=anasayfa [L,QSA] RewriteRule ^index.html$ index.php?sayfa=anasayfa [L,QSA] RewriteRule ^kategoriler/$ index.php?sayfa=kategoriler [L,QSA] RewriteRule ^kategori/(.*?).html$ index.php?sayfa=urunkategori&urunkategori=$1 [L,QSA] RewriteRule ^urun/(.*?).html$ index.php?sayfa=urundetay&urundetay=$1 [L,QSA] RewriteRule ^iletisim/$ index.php?sayfa=iletisim [L,QSA] RewriteRule ^blog/$ index.php?sayfa=blog [L,QSA] RewriteRule ^blog/(.*?).html$ index.php?sayfa=blogdetay&blogdetay=$1 [L,QSA] RewriteRule ^sayfalar/$ index.php?sayfa=sayfalar [L,QSA] RewriteRule ^sayfa/(.*?).html$ index.php?sayfa=sayfadetay&sayfadetay=$1 [L,QSA]Üstteki kalın olan kısımda "/" işaretini kaldırdığım taktirde;
site.com/deneme.html açılıyor ama diğer ".html" url ler açılmıyor. (site.com/sayfalar/, site.com/kategoriler/ vs açılıyor.)
site 404 hatası döndürüyor ama onda da hata veriyor 404.php sayfası açılmıyor.
Warning: require_once(): open_basedir restriction in effect. File(../ayar/baglan.php) is not within the allowed path(s): (/home/admin/web/site.com/public_html:/home/admin/tmp) in /home/admin/web/site.com/public_html/sayfalar/404.php on line 4 Warning: require_once(../ayar/baglan.php): failed to open stream: Operation not permitted in /home/admin/web/site.com/public_html/sayfalar/404.php on line 4 Fatal error: require_once(): Failed opening required '../ayar/baglan.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/admin/web/site.com/public_html/sayfalar/404.php on line 4