Anda perlu mengupgrade Flash Player Anda atau ijinkan javascript untuk mengenable menu website.
Unduh Flash Player

SEO AuraCMS

..

buka includes/fungsi.php

functionconvert_string($data)

{

$filename = html_entity_decode($data);

$filename = strtolower(preg_replace("/[^A-Za-z0-9-]/","-",$filename));

$filename_explode= explode("-",$filename);

for ($i=0; $i<=5;$i++) {

if(!empty($filename_explode[$i]))

$filename_glue[]= $filename_explode[$i];

}

$return_data =implode("-",$filename_glue);

return$return_data;

}


masukkan itu di paling bawah sebelumtanda ?>

buka mods\news\news.php

cari text ini:

<pclass="post-footer">

<ahref="?pilih=news&amp;mod=yes&amp;aksi=lihat&amp;id='.$data[0]

terus diganti jadi ini

<pclass="post-footer">

<ahref="'.$clean_url.'" title="'.$data[1].'"class="readmore">Read more</a>


terus di atasnya ada 6 baris

$tengah .='

tambahin di atasnya $tengah

$converted_title= convert_string($data[1]);

$clean_url ="readnews-$data[0]-$converted_title.html";


kalau pas mau di klik linknya berubahberarti jalan, ntar tinggal dibuatin htaccessnya

.htaccess

<IfModulemod_rewrite.c>

RewriteEngineon

# Rewrite URLsof the form 'x' to the form 'index.php?q=x'.

RewriteCond%{REQUEST_FILENAME} !-f

RewriteCond%{REQUEST_FILENAME} !-d

RewriteCond%{REQUEST_URI} !=/favicon.ico

#news clean url

RewriteRulecategory-([^-]+)-(.+)\.html$index.php?pilih=news&mod=yes&aksi=arsip&topik=$1 [L,QSA]

RewriteRulereadnews-([^-]+)-(.+)\.html$index.php?pilih=news&mod=yes&aksi=lihat&id=$1 [L,QSA]

</IfModule>

 

kirim ke teman | versi cetak

Share

Berita "" Lainnya