.htaccess (Internal Server Error) Hatası

Events happening in the community are now at Drupal community events on www.drupal.org.
devrimmehmet's picture

.htaccess dosyamı düzenlemek isterken sildim.
yedeğim yok ne yapabilirim tekrar oluşturmanın bir yolu varmı ?

elimde dosyanın son haline dair bir kopya mevcut herhangi bir yerini silmedim ama sanırım bir yerinde hata var o yedeği yüklediğimdede Internal Server Error hatası devam ediyor

.htaccess dosyasını tamamen sildiğimde ana sayfa açılıyor fakat giriş yapamıyorum ve ana sayfa dışındaki tüm linklerde not found hatası alıyorum

Comments

Drupal core would have a fresh copy

mparker17's picture

You would be able to get an unmodified .htaccess file by downloading Drupal core again, from https://www.drupal.org/project/drupal

If you have the time, it may be worth learning how to use Git (or another version control system of your choice): a version control system is designed to keep track of changes you make to files inside a folder, so that you can "undo" your changes if you accidentally delete a file, or change a file in a way that causes problems.

(I hope this answers your question — my native language is English and I'm reading your question through Google Translate)

Thank you...(dissolved)

devrimmehmet's picture

My problem is solved thank you, but when I try to do the transaction I get the same error again.

I can not redirect http page to https.

Sorunum çözüldü teşekkür ederim fakat işlem yapmaya kalktığımda yine aynı hatayla karşılaşıyorum.

http sayfayı https'e yönlendiremiyorum.

Http HTTPS yönlendirmek

devrimmehmet's picture

Çözüm:

.htaccess dosyasına şunları eklemek yeterli.


RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www.sizinsiteniz.com*
RewriteRule ^(.*)$ https://sizinsiteniz.com/$1 [L,R=301]