Cara Mengaktifkan .htaccess di localhost (xampp)

Diposting pada 2.703 views

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 xamppapacheconf
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 🙂

15 thoughts on “Cara Mengaktifkan .htaccess di localhost (xampp)

  1. 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? 😛 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

  2. 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/

  3. http://www.indobet77.com

    Master Agen Bola , Casino , Tangkas , Togel Terbesar
    dan Terpercaya Pilihan Para Bettor

    New Promo ( khusus produk 998bet )
    – Bonus 100 % New Member sportsbook ( 998 bet ) .
    – Bonus 100 % New Member Casino ( 998 bet ) .
    ( Syarat dan Ketentuan Berlaku )

    Promo Terbaru :
    – Bonus 10% New Member Sportsbook ( SBObet, IBCbet , AFB88 ,368bet , M8bet , 998bet )
    – Bonus 5% New Member Casino Online ( 338a , 1Scasino , Asia8bet , CBO855 )
    – Bonus 10% Setiap Hari Bola Tangkas ( TangkasNet , 368MM , 88 Tangkas )
    – Togel Online ( Klik4D )
    – Sabung Ayam ( New Produk )
    – CASHBACK untuk Member
    – BONUS REFERRAL 5% + 1% Seumur Hidup

    untuk Informasi lebih jelasnya silahkan hubungi CS kami :
    – YM : indobet77_sb2@yahoo.com
    – EMAIL : indobet77@gmail.com
    – WHATSAPP : +63 905 213 7238
    – WECHAT : indobet77
    – SMS CENTER : +63 905 213 7238
    – PIN BB : 2B65A547 / 24CC5D0F

    Salam Admin ,
    http://indobet77.com/

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *