Mengganti extension file web (*.php) sesuai keinginan anda

Untuk membuat file website dengan extension sesuai keinginan anda, cukuplah mudah… hanya menambahkan beberapa baris pada file httpd.conf di DirectoryIndex dan AddType application.

berikut yang saya tambahkan pada file konfigurasi Apache httpd.conf  :

DirectoryIndex index.html index.html.var index.htm index.php index.php3 index.ank index.vid

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .ank
AddType application/x-httpd-php .vid

Setelah selesai mengedit file httpd.conf simpan file dan restart web server Apache anda, dan testing dengan mengganti extension file *.php anda menjadi  *.ank atau *.vid

semoga bermanfaat…

Advertisements

About davidand

Hi, welcome to my blogs. My name is David Andriansyah. I am currently working as an independent Cognos Business Intelligence consultant, and I also as Freelance Web Developer. View all posts by davidand

3 responses to “Mengganti extension file web (*.php) sesuai keinginan anda

  • leoarjuna

    Setelah di edit di .htaccess
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .ank
    AddType application/x-httpd-php .vid

    halaman yang keluar malah tampilan scripts php nya..ada yang salah?

  • davidaank

    pastikan edit file konfigurasi apache httpd.conf dengan menambahkan text Bold diatas,
    index.ank index.vid
    AddType application/x-httpd-php .ank
    AddType application/x-httpd-php .vid

    dan Restart web server.

  • milna

    tak kui coba dulu..nanto comennya

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: