Username Password

Lost Password
View Thread
Explore Your Brain » PHP-Fusion Area » Explore CMS PHP-Fusion
[Tips & Trik] 1 lagi tips & trik supaya php fusion lebih SEO di mata mesin pencari
Username
Password
Register FAQ Members List Today's Posts Search

Print Thread

24-02-2009 09:10 PM [Tips & Trik] 1 lagi tips & trik supa...
User Avatar

ecallica
Genin Senior


Posts: 63
Joined: 31.01.09

Deprecated: Function eregi() is deprecated in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 24

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 29

Deprecated: Function eregi() is deprecated in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 24

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 29

Deprecated: Function eregi() is deprecated in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 24

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 29

Deprecated: Function eregi() is deprecated in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 24

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 29

Deprecated: Function eregi() is deprecated in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 24

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/explnorg/public_html/includes/bbcodes/code_bbcode_include.php on line 29
halo.. ada info tips & trik 1 lagi dari tetangga sebelah masalah SEO php fusion
hal ini berguna banget untuk web kita agar di indeks oleh mesin pencari
maksud gw biasanya klo kita perhatiin di web yang dibangun menggunakan php fusion klo kursor mouse diarahin ke artikel maka link akan berubah menjadi
http://www.namawebsitekita.com/articles.php
nah inilah pentingnya SEO merubah extensi web kita menjadi seperti ini http://www.namawebsitekita.com/articles.html
agar lebih mudah mesin pencari meng-indeks web kita
catatan : Hal ini ga berlaku untuk hosting gratisan, karena akan menyebabkan error
keknya udah terlalu panjang lebar nh berikut cara yang gw dapat.....
1. buka dan cari file /maincore.php
cari file
Download source  Code
ob_start();



dibawahnya tambahin file ini
Download source  Code
function rewrite_urls($buf) {
   if(!substr_count($_SERVER['REQUEST_URI'],"administration")) {
      $buf = preg_replace('#readarticle\.php\?article_id=([0-9]*?)(\'|")#si', 'read-article\1.html\2', $buf);
      $buf = preg_replace('#articles\.php\?cat_id=([0-9]*?)(\'|")#si', 'articles_cat\1.html\2', $buf);
      $buf = preg_replace('#articles\.php#si', 'articles.html', $buf);
      $buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(\'|")#si', 'downloads_cat\1.html\2', $buf);
      $buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(&|&)download_id=([0-9]*?)(\'|")#si', 'downloads\1-file-\3.html\4', $buf);
      $buf = preg_replace('#downloads\.php#si', 'downloads.html', $buf);
      $buf = preg_replace('#faq\.php\?cat_id=([0-9]*?)(\'|")#si', 'faq_cat\1.html\2', $buf);
      $buf = preg_replace('#faq\.php#si', 'faq.html', $buf);
      $buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(\'|")#si', 'links_cat\1.html\2', $buf);
      $buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(&|&)weblink_id=([0-9]*?)(\'|")#si', 'links_cat\1-linkid-\3.html\4', $buf);
      $buf = preg_replace('#weblinks\.php#si', 'links.html', $buf);
      $buf = preg_replace('#news_cats\.php#si', 'news-categories.html', $buf);
      $buf = preg_replace('#news\.php\?readmore=([0-9]*?)(\'|")#si', 'readnews-\1.html\2', $buf);
      $buf = preg_replace('#contact\.php#si', 'contacts.html', $buf);
      $buf = preg_replace('#photogallery\.php\?album_id=([0-9]*?)(\'|")#si', 'gallery-album\1.html\2', $buf);
      $buf = preg_replace('#photogallery\.php\?photo_id=([0-9]*?)(\'|")#si', 'gallery-photo\1.html\2', $buf);
      $buf = preg_replace('#showphoto\.php\?photo_id=([0-9]*?)(\'|")#si', 'showphoto\1.html\2', $buf);
      $buf = preg_replace('#photogallery\.php#si', 'gallery.html', $buf);
      $buf = preg_replace('#search\.php\?stype=f#si', 'search-f.html', $buf);
      $buf = preg_replace('#search\.php#si', 'search.html', $buf);
      $buf = preg_replace('#profile\.php\?lookup=([0-9]*?)(\'|")#si', 'profile-\1.html\2', $buf);
      $buf = preg_replace('#print\.php\?type=N(&|&)item_id=([0-9]*?)(\'|")#si', 'print_news\2.html\3', $buf);
      $buf = preg_replace('#print\.php\?type=A(&|&)item_id=([0-9]*?)(\'|")#si', 'rint_article\2.html\3', $buf);
      $buf = preg_replace('#register\.php#si', 'register.html', $buf);
      $buf = preg_replace('#lostpassword\.php#si', 'lostpassword.html', $buf);
      $buf = preg_replace('#viewpage\.php\?page_id=([0-9]*?)(\'|")#si', 'viewpage\1.html\2', $buf);
   }
   return $buf;
}





abis itu tambahin file .htaccess dan taro di root folder php fusion dan isi dari .htaccess dengan file berikut
Download source  Code
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^articles\.html$ articles.html [N]
RewriteRule ^articles_cat([0-9]+)\.html$ articles.html?cat_id=$1 [L]
RewriteRule ^read-article([0-9]+)\.html$ readarticle.php?article_id=$1 [L]
RewriteRule ^index\.html$ index.php [N]
RewriteRule ^downloads\.html$ downloads.html [N]
RewriteRule ^faq\.html$ faq.html [N]
RewriteRule ^links\.html$ links.html [N]
RewriteRule ^news-categories\.html$ news-categories.html [N]
RewriteRule ^news\.html$ news.php [N]
RewriteRule ^readnews-([0-9]+)\.html$ news.php?readmore=$1 [L]
RewriteRule ^contacts\.html$ contacts.html [N]
RewriteRule ^gallery\.html$ gallery.html [N]
RewriteRule ^search-f\.html$ search-f.html [N]
RewriteRule ^search\.html$ search.html [N]
RewriteRule ^profile-([0-9]+)\.html$ profile.php?lookup=$1 [L]
RewriteRule ^gallery-album([0-9]+)\.html$ gallery.html?album_id=$1 [L]
RewriteRule ^gallery-photo([0-9]+)\.html$ gallery.html?photo_id=$1 [L]
RewriteRule ^showphoto([0-9]+)\.html$ showphoto.php?photo_id=$1 [L]
RewriteRule ^downloads_cat([0-9]+)\.html$ downloads.html?cat_id=$1 [L]
RewriteRule ^downloads_cat([0-9]+)-file([0-9]+)\.html$ downloads.html?cat_id=$1&download_id=$2 [L]
RewriteRule ^faq_cat([0-9]+)\.html$ faq.html?cat_id=$1 [L]
RewriteRule ^links_cat([0-9]+)\.html$ links.html?cat_id=$1 [L]
RewriteRule ^links_cat([0-9]+)-linkid-([0-9]+)\.html$ links.html?cat_id=$1&weblink_id=$2 [L]
RewriteRule ^print_news([0-9]+)\.html$ print.php?type=N&item_id=$1 [L]
RewriteRule ^print_article([0-9]+)\.html$ print.php?type=A&item_id=$1 [L]
RewriteRule ^register\.html$ register.html [N]
RewriteRule ^lostpassword\.html$ lostpassword.html [N]
RewriteRule ^viewpage([0-9]+)\.html$ viewpage.php?page_id=$1 [L]





udah itu cari file footer.php di /themes/templates/footer.php
cari file ini
Download source  Code
echo handle_output($output);



tiban/ganti sama code ini
Download source  Code
echo rewrite_urls(handle_output($output));




coba deh liat web lo sekarang setiap extensinya berubah jadi .html

semoga membantu


:?jij?
Barang siapa berjalan untuk menuntut ilmu maka Allah akan memudahkan baginya jalan ke surga. (HR. Muslim).
 
Offline
27-02-2009 03:48 AM RE: [Tips & Trik] 1 lagi tips & trik supa...
User Avatar

EVA-00
HackAge


Posts: 2768
Joined: 21.05.08
Location: Wallahu a'lam
Age: 34
Nice info bro, oia ati-ati kl gunain SEO di atas takutnya kl lg update SVN (Sub Version) PHP-Fusion kadang suka error lho. makanya gw blm berani pake tips di atas.

Wink
Nabi Muhammad SAW bersabda :” Barangsiapa Yang Mengamalkan Ilmu Yang Ia Ketahui Maka Allah Akan Memberikan Kepadanya Ilmu Yang Belum Ia Ketahui” (HR. Imam Ahmad).

..::shn6 u!vJq Jnoh 3Joldx3 d33>I::..
 
Offline
02-03-2009 05:07 AM RE: [Tips & Trik] 1 lagi tips & trik supa...
User Avatar

k1t1n6
Anbu


Posts: 507
Joined: 27.10.08
Location: 127.0.0.1
Age: 11
wew.. mantabb.. thx bgbt infonya brother...
 
Offline
21-07-2009 07:24 AM RE: [Tips & Trik] 1 lagi tips & trik supa...
User Avatar

dkills
Murid Akademi I


Posts: 3
Joined: 18.09.08
Location: C:\Program Files\Ex3cOdEr.ExE
Age: 28
makasih atas infonya
udah w coba tp w gnti lg ke defaultnya
semoga z tim php-fusion mengeluarkan yg seo friendly
hehehehe biar gmpang untuk diutak atiknya
i344.photobucket.com/albums/p334/secret_4dmirror/Untitled-4.jpg
 
Offline
Jump to Forum:
Forum powered by fusionBoard
Share this Thread
URL:
BBcode:
HTML:
Similar Threads
Thread Forum Replies Last Post
Tips & Trick Memantain BlackBerry Share Pengetahuan Umum 3 04-08-2019 23:48
tanya php fusion Explore CMS PHP-Fusion 4 23-12-2013 07:03
All Download Links Down (Lagi) Pengumuman 19 12-12-2012 05:19
PHP-Fusion bahasa indonesia Explore CMS PHP-Fusion 12 19-04-2012 21:34
Perkenalan Lagi :( Absen Member baru 1 09-04-2012 02:51
Copyright © 2007-2016