.htaccess (Internal Server Error) Hatası

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by devrimmehmet on June 23, 2017 at 1:22am

.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

Categories: ,

Comments

Drupal core would have a fresh copy

Posted by mparker17 on June 23, 2017 at 8:21pm

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)

Posted by devrimmehmet on June 23, 2017 at 9:52pm

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

Posted by devrimmehmet on July 6, 2017 at 10:52am

Çö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]


AltStyle によって変換されたページ (->オリジナル) /