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&mod=yes&aksi=lihat&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>
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&mod=yes&aksi=lihat&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>
Software Pendidikan
Pilihan Menu
Arsip Berita
Kantor : 0343-6755539
Web :
Email : info@maxtech.co.id
Jalan : Raya Sengon Agung No 15 Purwosari Kab.Pasuruan - Jawa Timur Indonesia. |