• 26-06-2023, 15:12:26
    #1
    Bir htaccess yapım var. Detay sayfasına gönderdiğim ulr'in sonuna / veya bir karekter konulduğunda 404.php sayfasına yönlendirmek istiyorum. Nasıl yapabilirim?
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^localhost/ [NC]
    RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^(.*)$ $1.php
    
    RewriteRule ^([^/_.]+)$ detay.php?url=$1 [L,QSA]
    RewriteRule ^sayfa/([^/_.]+)$ index.php?page=$1 [L,QSA]
    
    
    #404 hata sayfası yönlendirme kodu
    ErrorDocument 404 http://localhost/
    <IfModule mod_security.c>
    SecFilterEngine Off
      SecFilterScanPOST On
    </IfModule>
  • 26-06-2023, 15:34:10
    #2
    MERHABA WHATSAPP DESTEK HATTIMIZDAN
    İLETİŞİME GEÇEBİLİRSİNİZ.



    WHATSAPP
    +905356286496


    www.webbilisimi.com.tr

    www.kurtuwebtasarim.com.tr
  • 27-06-2023, 09:27:37
    #3
    Konu Hala Aktiftir. Yarıdıma İhtiyacım var.