Breaking News

Cara Mengaktifkan .htaccess di localhost (xampp)

Okeh, .htaccess ternyata bikin pusing juga, berawal dari tantangan si bos nyuruh nambahin halaman di website PHP, dan terakhir ngerjain PHP itu pas semester 6. wkwkw alkhasil mesti buka dan bongkar-bongkar om google lagi.

Nah, masalah muncul setelah selesai instal xampp, setting koneksi.php dan taruh mysql. Setelah buka localhost/portal. Ooo.. muncul eror

OBJECT NOT FOUND
The requested URL /someone/mistyped/a/link.html was not found on this server.


setelah bertapa sedikit dan mengingat-ngingat semedi di kamar mandi akhirnya dapat kesimpulan masalah nya ada di .htaccess .

Ternyata sangka ga disangka setelah kita selesai instalasi xampp kita harus mengaktifkan fungsi .htaccess agar file .htaccess bisa terbaca.

Cara Mengaktifkan File .htaccess di localhost (xampp)

1. Buka file httpd.conf di directory \xampp\apache\conf
2. Cari baris code
#LoadModule rewrite_module modules/mod_rewrite.so

3. Ubah dengan menghapus tanda '#' sehingga code menjadi
LoadModule rewrite_module modules/mod_rewrite.so

4. Save
5. Restart server apache


dan hulalala... coba buka kembali file anda :)

12 komentar:

  1. Genuine Panerai Luminor Marina Watches can now be found online.
    Qnet has its offices in 9 countries and is still expanding.
    With the presented business center one can create a network and spread the idea of the business eventually resulting to more sales, eventually resulting the desired money
    and growth.
    Here is my page :: http://axwatches.hubpages.com/

    BalasHapus
  2. Thank you for sharing your info. I really appreciate your efforts and I am waiting
    for your further post thanks once again.
    My site :: free royal caribbean cruise

    BalasHapus
  3. I hardly create responses, however after reading through some of the responses on "Cara Mengaktifkan .htaccess di localhost (xampp)".
    I actually do have 2 questions for you if it's okay. Could it be simply me or do some of these responses appear like they are written by brain dead folks? :-P And, if you are writing on additional sites, I'd like to keep up with you.
    Could you make a list of all of all your social community pages like your
    linkedin profile, Facebook page or twitter feed?
    Also visit my webpage furniture plans

    BalasHapus
  4. MantaaapS gan, Thanks For Your Information ... Sangat Bermanfaaat sekali...

    BalasHapus
  5. Info yang sangat bermanfaat gan..
    Keep sharing..

    Salam dari ferry-at.blogspot.com

    BalasHapus
  6. Gan punya ane masih gagal.
    Ada bacaan
    UNABLE TI CONNETC THE PROXY SERVER
    Knp tuh gan?

    BalasHapus
  7. untuk diblogger gmn pasangnya htaccess bos?
    aku hosting di indohostinger, tp blm berfungsi, kodingnya agar terhubung ke blggoer kita gmn ya bos?

    BalasHapus
  8. untuk diblogger gmn pasangnya htaccess bos?
    aku hosting di indohostinger, tp blm berfungsi, kodingnya agar terhubung ke blggoer kita gmn ya bos?

    BalasHapus
  9. terima kasih ya.. untuk tipsnya.. www.jayautamakomputer.com

    BalasHapus