Web Stats Web Hosting Blogs - BlogCatalog Blog Directory TopOfBlogs

Masukan email anda untuk mendapatkan artikel terbaru:

hab.la

tutorial rewrite url dengan relink classes dari Benjamin Falk

Bagaimana mengimplementasikan url rewrite rules untuk suatu situs yang memberikan opsi enable dan disable dalam menggunakan url rewrite rules.

Solusinya cukup mudah dan juga dimudahkan dengan adanya php classes yang dibuat oleh Benjamin Falk asal Austria, nama php classesnya relink bisa di download disini http://www.phpclasses.org/browse/package/4820.html

setelah download, extrak dan perhatikan pada contoh yang tersedia kurang lebih sebagai berikut :
htaccess-example

RewriteEngine on
RewriteRule (.+?)\.html ?page=$1
RewriteRule (.+?)\.html/([\w]+) ?page=$1&mode=$2
RewriteRule ^special\:(.+?)\.html/value\:(.+?)$ ?$1&value=$2

dan Example.php

<?

require_once 'class.relink.php';

$htaccessFile = ‘./htaccess-example’;
$c_relink = new RELINK($htaccessFile);

echo ‘<a href=”‘.$c_relink->replaceLink(‘?page=blog’).’”>View blog</a> | ‘;
echo ‘<a href=”‘.$c_relink->replaceLink(‘?page=blog&mode=edit’).’”>Edit Blog</a> | ‘;
echo ‘<a href=”‘.$c_relink->replaceLink(‘?info&value=all’).’”>Show all information</a>’;

?>

pada contoh source example.php maka nantinya Anda akan dimudahkan dalam menggunakan metoda enable atau disable url rewrite rules, karena anda cukup membuat statement if else jika enable ya gunakan relink jika tidak ya gunakan url asli.

Relink ini telah meraih innovasion award loh periode September 2008 jadi relink sudah teruji.

selamat mencoba

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Incoming search terms for the article:

Related posts:

  1. php classess date calculator Artikel ini akan memberikan gambaran bagaimana menggunakan php date calculator...
  2. PHP Image Resize masal dengan memanfaatkan class dari Emilio Rodriguez Beberapa waktu lalu ada yang butuh script untuk melakukan resize...
  3. Template Gratis dari www.templateworld.com ini saya mendapatkan link template gratis dan cukup bagus. Anda...
  4. Database visual modelling dengan DBDesigner4 dari fabforce.net Bagi developer yang berkutat masalah Database tidak pas kalau tidak...
  5. Menghindari email masuk SPAM folder Yahoo dan Google dengan PHP Mailler Sebenarnya bahasan ini sudah tidak asing lagi dan sudah banyak...

Related posts brought to you by Yet Another Related Posts Plugin.

3 comments to tutorial rewrite url dengan relink classes dari Benjamin Falk

  • Nice work. Thanks for sharing…

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  • trims

    VN:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  • This is my first time to visit here. I found so much interesting stuff in your blog, especially its topics. From the scores of comments on your thread, I guess I am not the only one having all the enjoyment here! Keep up the hard work.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">