• 19-04-2018, 15:20:32
    #1
    Merhaba arkadaşlar, baya zamandır htaccess ile uğraşırım ama ilkez böyle bir yapıyla karşılaştım. Bir tanıdığım rica etti, hazır bir sistemi var mvc sanırım alt yapısı. Bir klasör oluşturduk html dosya attık ama siteadi.com/hediye yazınca 404 açılıyor. Sanırım htaccess engelliyor bunu 404 hatası basıyor. Htaccess kodlarım aşağıda göstermek istediğim Klasör: hediye bu klasöre nasıl erişebilirim?

    <IfModule mod_rewrite.c>
    
    
        <IfModule mod_negotiation.c>
            Options -MultiViews
        </IfModule>
    
    
        RewriteEngine On
    
    
        RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
    
    
        ##
        ## You may need to uncomment the following line for some hosting environments,
        ## if you have installed to a subdirectory, enter the name here also.
        ##
        # RewriteBase /
     
        ##
        ## Black list protected files
        ##
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^bootstrap/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^config/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^vendor/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^storage/cms/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^storage/logs/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^storage/framework/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^storage/temp/protected/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^storage/app/uploads/protected/.* index.php [L,NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    
    
    
    
        ##
        ## White listed folders and files
        ##
        RewriteCond %{REQUEST_FILENAME} -f
        RewriteCond %{REQUEST_URI} !.js
        RewriteCond %{REQUEST_URI} !.map
        RewriteCond %{REQUEST_URI} !.ico
        RewriteCond %{REQUEST_URI} !.jpg
        RewriteCond %{REQUEST_URI} !.jpeg
        RewriteCond %{REQUEST_URI} !.bmp
        RewriteCond %{REQUEST_URI} !.png
        RewriteCond %{REQUEST_URI} !.gif
        RewriteCond %{REQUEST_URI} !.svg
        RewriteCond %{REQUEST_URI} !.css
        RewriteCond %{REQUEST_URI} !.less
        RewriteCond %{REQUEST_URI} !.scss
        RewriteCond %{REQUEST_URI} !.pdf
        RewriteCond %{REQUEST_URI} !.swf
        RewriteCond %{REQUEST_URI} !.txt
        RewriteCond %{REQUEST_URI} !.xml
        RewriteCond %{REQUEST_URI} !.xls
        RewriteCond %{REQUEST_URI} !.eot
        RewriteCond %{REQUEST_URI} !.woff
        RewriteCond %{REQUEST_URI} !.woff2
        RewriteCond %{REQUEST_URI} !.ttf
        RewriteCond %{REQUEST_URI} !.flv
        RewriteCond %{REQUEST_URI} !.wmv
        RewriteCond %{REQUEST_URI} !.mp3
        RewriteCond %{REQUEST_URI} !.ogg
        RewriteCond %{REQUEST_URI} !.wav
        RewriteCond %{REQUEST_URI} !.avi
        RewriteCond %{REQUEST_URI} !.mov
        RewriteCond %{REQUEST_URI} !.mp4
        RewriteCond %{REQUEST_URI} !.mpeg
        RewriteCond %{REQUEST_URI} !.webm
        RewriteCond %{REQUEST_URI} !.mkv
        RewriteCond %{REQUEST_URI} !.mkv
        RewriteCond %{REQUEST_URI} !docs/.*
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^ index.php [L,NC]
    
    
    
    
        ##
        ## Standard routes
        ##
        RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
        RewriteRule ^ index.php [L]
    
    
    </IfModule>
  • 19-04-2018, 15:48:13
    #2
    Üyeliği durduruldu
    # BEGIN hediye
     <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteBase /hediye/
     RewriteRule ^index.php$ – [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /hediye/index.php [L]
     </IfModule>
     # END hediye
    alt klasörde bu kodlarla .htaccess dosyası oluşturup deneyin.
  • 19-04-2018, 15:51:13
    #3
    AJANSTURKA adlı üyeden alıntı: mesajı görüntüle
    # BEGIN hediye
     <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteBase /hediye/
     RewriteRule ^index.php$ – [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /hediye/index.php [L]
     </IfModule>
     # END hediye
    alt klasörde bu kodlarla .htaccess dosyası oluşturup deneyin.
    Yok hocam ya yemiyor yine direkt 404'e atıyor.
  • 19-04-2018, 16:02:48
    #4
    Üyeliği durduruldu
    celalyesil adlı üyeden alıntı: mesajı görüntüle
    Yok hocam ya yemiyor yine direkt 404'e atıyor.
    kodu ana .htaccess in en üstüne ekleyip deneyebilir misiniz?
  • 20-04-2018, 10:30:09
    #5
    AJANSTURKA adlı üyeden alıntı: mesajı görüntüle
    kodu ana .htaccess in en üstüne ekleyip deneyebilir misiniz?
    Onuda denedim hocam yemedi.


    Diğer klasörlerde .well-know ve altında pki-validation klasörleri var onları oluşturdum çalıştı. Anlamadım nasıl bir sistem bu. Teşekkür ederim yinede.