SEO AuraCMS
buka includes/fungsi.php
function
convert_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 sebelum
tanda ?>
buka mods\news\news.php
cari text ini:
<p
class="post-footer">
<a
href="?pilih=news&mod=yes&aksi=lihat&id='.$data[0]
terus diganti jadi ini
<p
class="post-footer">
<a
href="'.$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 berubah
berarti jalan, ntar tinggal dibuatin htaccessnya
.htaccess
<IfModule
mod_rewrite.c>
RewriteEngine
on
# Rewrite URLs
of 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
RewriteRule
category-([^-]+)-(.+)\.html$
index.php?pilih=news&mod=yes&aksi=arsip&topik=$1 [L,QSA]
RewriteRule
readnews-([^-]+)-(.+)\.html$
index.php?pilih=news&mod=yes&aksi=lihat&id=$1 [L,QSA]
</IfModule>
buka includes/fungsi.php
function
convert_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 sebelum
tanda ?>
buka mods\news\news.php
cari text ini:
<p
class="post-footer">
<a
href="?pilih=news&mod=yes&aksi=lihat&id='.$data[0]
terus diganti jadi ini
<p
class="post-footer">
<a
href="'.$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 berubah
berarti jalan, ntar tinggal dibuatin htaccessnya
.htaccess
<IfModule
mod_rewrite.c>
RewriteEngine
on
# Rewrite URLs
of 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
RewriteRule
category-([^-]+)-(.+)\.html$
index.php?pilih=news&mod=yes&aksi=arsip&topik=$1 [L,QSA]
RewriteRule
readnews-([^-]+)-(.+)\.html$
index.php?pilih=news&mod=yes&aksi=lihat&id=$1 [L,QSA]
</IfModule>