• 19-08-2019, 13:58:39
    #1
    Üyeliği durduruldu
    Merhaba,

    litespeed tabanlı host üzerinde ufak bir script yapmaya çalışıyorum.

    Yapmak istediğim işlem aşağıdaki gibi html uzantılı dosyayı html'siz uzantıyla çalıştırmak:

    basvurular.html yerine siteadi / basvurular şeklinde açılmasını istiyorum.

    RewriteRule ^basvurular/ basvurular.html [NC,QSA,L]
    RewriteRule ^iletisim/ iletisim.html [NC,QSA,L]
    RewriteRule ^nedir/ nedir.html [NC,QSA,L]

    Bunu çalıştıramadım.



    .htaccess dökümü:

    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^siteadi.com [NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteRule ^(.*)$ https://www.siteadi.com/$1 [L,R=301]

    RewriteRule ^basvurular/ basvurular.html [NC,QSA,L]
    RewriteRule ^iletisim/ iletisim.html [NC,QSA,L]
    RewriteRule ^nedir/ nedir.html [NC,QSA,L]
  • 19-08-2019, 14:17:31
    #2
    htaccess'den çok fazla anlamıyorum ama şunu gördüm;


    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

    bu ne gelirle gelsin index.php'ye yönlendiriyor ondan dolayı aşağıyı pas geçiyor sanırım
  • 19-08-2019, 17:39:19
    #3
    Developer
    Merhaba @Centox;,
    Aşağıdaki kuralları dener misin?
    (siteadi.com yazan adresleri güncellemeyi unutmayın)

    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^siteadi.com [NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteRule ^(.*)$ https://www.siteadi.com/$1 [L,R=301]
    
    RewriteRule ^basvurular basvurular.html [L,QSA]
    RewriteRule ^iletisim iletisim.html [L,QSA]
    RewriteRule ^nedir nedir.html [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  • 25-08-2019, 21:12:42
    #4
    Üyeliği durduruldu
    Hayır hocam, çalışmadı.


    FastPHP adlı üyeden alıntı: mesajı görüntüle
    Merhaba @Centox;,
    Aşağıdaki kuralları dener misin?
    (siteadi.com yazan adresleri güncellemeyi unutmayın)

    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^siteadi.com [NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
    RewriteRule ^(.*)$ https://www.siteadi.com/$1 [L,R=301]
    
    RewriteRule ^basvurular basvurular.html [L,QSA]
    RewriteRule ^iletisim iletisim.html [L,QSA]
    RewriteRule ^nedir nedir.html [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]