• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Xunghequetui

New Member
Mục đích chủ yếu của mod rewrite (viết lại) là để cho đường link thân thiện và dễ seo hơn.
Sau đâu mình sẽ hướng dẫn tất cả về mod rewrite
VD mình có đường link mặc định sau http://john.newstyleclan.com/forum/index.php?id=51 & sau khi mod rewrite sẽ là http://john.newstyleclan.com/forum/s...-full-mod.html (đẹp rồi đúng không)
+Các tệp cần tác động:
1. Index.php (forum)
2. functions.php
3. .htaccess (root)
4. mainmenu.php
+Bước 1:
//Mở file .htaccess (root)
Chèn đoạn sau vào (lưu ý không có chữ <?php ?> nhá)
PHP Code:
RewriteRule ^ forum /(.*) _ ([ 0 - 9 ]+). html $ forum / index . php ? id =$ 2 [ L ]
RewriteRule ^ forum /(.*) _ ([ 0 - 9 ]+) _p ([ 0 - 9 ]+). html $ forum / index . php ? id =$ 2 & page =$ 3 [ L ]
RewriteRule ^ forum /(.*) _p ([ 0 - 9 ]+). html $ forum / index . php ? act = post & id =$ 2 [ L ]
RewriteRule ^ forum /(.*) _ ([ 0 - 9 ]+) _s ([ 0 - 9 ]+). html $ forum / index . php ? id =$ 2 & start =$ 3 [ L ]
RewriteRule ^ forum /(.*) _ ([ 0 - 9 ]+) _clip_p ([ 0 - 9 ]+). html $ forum / index . php ? id =$ 2 & clip & page =$ 3 [ L ]
+Bước 2: Tải file function.zip bên dưới rồi copy tất cả code bên trongfile .txt rồi dán và sau
PHP Code:
/*
-----------------------------------------------------------------
Транслитерация текста
-----------------------------------------------------------------
*/
+Bước 3:
//Mở file index.php (forum)
Tìm dòng 226
PHP Code:
$tree [] = '<a rel="nofollow href="index.php?id=' . $parent . '">' . $res [ 'text' ] . '</a>' ;
Thay bằng
PHP Code:
$tree [] = '<a href="' . $home . '/forum/' . functions :: newstyleclan ( $res [ 'text' ]) . '_' . $parent . '.html">' . $res [ 'text' ] . '</a>' ;
Tìm dòng 295
PHP Code:
echo '<a rel="nofollow" href="?id=' . $res [ 'id' ] . '">' . $res [ 'text' ] . '</a>' ;
Thay bằng
PHP Code:
echo '<a href="' . $home . '/forum/' . functions :: newstyleclan ( $res [ 'text' ]) . '_' . $res [ 'id' ]. '.html">' . $res [ 'text' ] . '</a>' ;
Tìm dòng 344
PHP Code:
echo '<a rel="nofollow" href="index.php?id=' . $res [ 'id' ] . '">' . $res [ 'text' ] . '</a> [' . $colmes1 . ']' ;
Thay bằng
PHP Code:
echo '<a href="' . $home . '/forum/' . functions :: newstyleclan ( $res [ 'text' ]) . '_' . $res [ 'id' ] . '.html">' . $res [ 'text' ] . '</a> [' . $colmes1 . ']' ;
Tìm dòng 346
PHP Code:
echo '<a rel="nofollow" href="index.php?id=' . $res [ 'id' ] . '&page=' . $cpg . '">*>></a>' ;
Thay bằng
PHP Code:
echo '<a href="' . $home . '/forum/' . functions :: newstyleclan ( $res [ 'text' ]) . '_' . $res [ 'id' ] . '_p' . $cpg . '.html">*>></a>' ;
Tìm dòng 596
PHP Code:
echo bbcode :: notags ( $text ) . '...<br /><a rel="nofollow" href="index.php?act=post&id=' . $res [ 'id' ] . '">' . $lng_forum [ 'read_all' ] . '>></a>' ;
Thay bằng
PHP Code:
echo bbcode :: notags ( $text ) . '...<br /><a href="' . $home . '/forum/' . functions :: newstyleclan ( $type1 [ 'text' ]) . '_p' . $res [ 'id' ] . '.html">' . $lng_forum [ 'read_all' ] . '>></a>' ;
Tìm dòng 755
PHP Code:
echo '<a rel="nofollow" href="index.php?id=' . $res [ 'id' ] . '">' . $res [ 'text' ] . '</a> [' . $count . ']' ;
Thay bằng
PHP Code:
echo '<a href="' . $home . '/forum/' . functions :: newstyleclan ( $res [ 'text' ]) . '_' . $res [ 'id' ] . '.html">' . $res [ 'text' ] . '</a> [' . $count . ']' ;
Tìm dòng 407
PHP Code:
echo '<div class="topmenu">' . functions :: display_pagination ( 'index.php?id=' . $id . '&' , $start , $colmes , $kmess ) . '</div>' ;
Thay bằng
PHP Code:
echo '<div class="topmenu">' . functions :: display_pagination2 ( '' . $home . '/forum/' . functions :: newstyleclan ( $type1 [ "text" ]). '_' . $id , $start , $colmes , $kmess ) . '</div>' ;
Tìm dòng 689
PHP Code:
echo '<div class="topmenu">' . functions :: display_pagination ( 'index.php?id=' . $id . '&' , $start , $colmes , $kmess ) . '</div>' .
Thay =
PHP Code:
echo '<div class="topmenu">' . functions :: display_pagination2 ( '' . $home . '/forum/' . functions :: newstyleclan ( $type1 [ "text" ]). '_' . $id , $start , $colmes , $kmess ) . '</div>' .
+Bước 4:
//Mở mainmenu.php (yêu cầu đã mod bài viết mới ratrang chủ)
+Tìm
PHP Code:
echo ' <a rel="nofollow" href="/forum/index.php?id=' . $arr [ 'id' ] . ( $cpg > 1 && $_SESSION [ 'uppost' ] ? '&clip&page='

----------> Bổ sung bài viết lúc 12:40 <----------> Bài viết trước lúc 12:39 <----------

. $cpg : '' ) . '">' . bbcode :: tags ( $arr [ 'text' ]) . '</a> [' . $colmes1 . ']' ;
+Thay bằng:
PHP Code:
echo ' <a href="' . $home . '/forum/' . functions :: newstyleclan ( $arr [ "text" ]). '_' . $arr [ 'id' ] . ( $cpg > 1 && $set_forum [ 'upfp' ]&& $set_forum [ 'postclip' ]? '_clip_' : '' ) . ( $set_forum [ 'upfp' ] && $cpg > 1 ? '_p' . $cpg : '.html' ) . '">' . bbcode :: tags ( $arr [ 'text' ]) . '</a> [' . $colmes1 . ']' ;
+Tìm tiếp
PHP Code:
echo ' <a rel="nofollow" href="/forum/index.php?id=' . $arr [ 'id' ] . ( $_SESSION [ 'uppost' ] ? '' : '&clip&page=' . $cpg ) . '#' . $nam [ 'id' ]. '">>></a>' ;
+Thay bằng:
PHP Code:
echo ' <a href="' . $home . '/forum/' . functions :: newstyleclan ( $arr [ "text" ]). '_' . $arr [ 'id' ] . (! $set_forum [ 'upfp' ] && $set_forum [ 'postclip' ] ? '_clip_' : '' ) . ( $set_forum [ 'upfp' ] ? '' : '_p' . $cpg ) . '.html">*>></a>' ;
bổ sung do nội dung dài quá
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
K Share Hướng Dẫn Mod Rewrite Url Cho Johncms Full All Shared Scripts 0
Admin Hướng dẫn mod rewrite url chuẩn cho wapka Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
V Hỏi Cần giúp về mod rewrite url Johncms 1
D Share Hướng dẫn mod Rewrite Url cho JohnCMS 4.4.0 Full Johncms 0
Admin Hướng dẫn mod rewrite url cho grab Johncms 0
Admin Share blog mod rewrite url for johncms Johncms 0
N Khắc phục lỗi mod thank khi sử dụngmod seo rewrite url Phpbb3x 0
Admin Hướng dẫn mod Rewrite URL JohnCMS 4.4 Johncms 2
H Share mod sitemap rewrite cho john cms Johncms 0
Admin Share mod rewrite profile johncms haycuc Johncms 0
Admin Tham khảo vài tham số trong mod rewrite của htaccess Chuyên đề htaccess 0
Admin [OzzModz] Display Visitor Name ( [you] Mod) Xenforo 0
hellonhe forummmo.com cần tuyển admin, mod và các đại ca cntt Tin tức, sự kiện thường ngày 0
ginbarca Xin source johncms mod full Johncms 0
Admin Not Your Average Adblock Detecting Mod (hide images in post) Add-ons 0
Admin Yilmaz - Image upload mod for vB5 Add-ons 0
Admin HTML5 Game Mod for ibProArcade Add-ons 0
Admin German translation for [OzzModz] Email Staff When New Post/Thread In Mod Queue Xenforo 0
Admin Share code wap upload mod full Mã nguồn wap 3
dammechiase Tải hack game township mới nhất miễn phí cho android – Mod Full Tiền không cần root máy Trò chơi 0
dammechiase Tải Hack Game Subway Surfers Mod full coin, key, Hoverboard cho android không cần root máy Trò chơi 0
dammechiase Dowload Mod Skin LoL Pro 2020 mới nhất Trò chơi 0
dammechiase Download Game GTA Vice City Full Mod Tiếng Việt – Cướp đường phố bản chuẩn Trò chơi 0
dammechiase Hack Game Game VALKYRIE CONNECT Mới Nhất / 神域召唤:魔法少女 v4.3.0 BILIBILI MENU MOD Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Fishing Hook Free Mới Nhất – Mod Full Tiền Game Lưỡi Câu Miễn Phí không cần root máy Trò chơi 0
dammechiase Hack Game Captain Tsubasa: Dream Team Mới Nhất v2.3.2 MENU MOD | WEEKEN ENEMY | FULL STAMINA Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Royal Garden Tales – Match 3 Puzzle Decoration Mới Nhất v0.9.0 MOD FREE GOLD Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Pet World – My animal shelter Mới Nhất v5.1 MOD Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Ice Crush Mới Nhất MOD unlimited coins Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Game Mighty Party: Heroes Clash Mới Nhất v1.26 ULTRA MOD | ALL IN ONE | MENU ON OFF MOD Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Marmok's Team Monster Crush Mới Nhất MOD many coins/diamonds Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Game LINE: GUNDAM WARS Mới Nhất v3.5.1 MOD ATTACK – DEFENSE – MENU MOD Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Last Day on Earth: Survival Mới Nhất MOD free craft t Miễn Phí Cho Android Trò chơi 0
dammechiase Hack Game Rules of Survival Mới Nhất Update 2019 Mobile Android – ROS Mod Update Trò chơi 0
dammechiase Hack Game Kingdom Rush Vengeance Mới Nhất Mod không giới hạn Trò chơi 0
dammechiase Hack Game Legend vs Zombies Mới Nhất MOD Không giới hạn Trò chơi 0
dammechiase Hack Game Alien War Mới Nhất mod kim cương (gems) – Game Spaceship Shooter cho Android Trò chơi 0
dammechiase Hack Dream League Soccer 2019 Mới Nhất -Hướng Dẫn Mod Đội Hình Việt Nam AFF CUP Buff Chỉ Số Dream League Soccer 2019 Trò chơi 0
dammechiase Hack Game Zing Speed Mobile Mới Nhất VNG Mod Mới Nhất Không Cần Root Máy Trò chơi 0
dammechiase hack Game Long Đồ Bá Nghiệp mới nhất Mod & Hack For Android Trò chơi 0
dammechiase hack Game Lệnh Giang Hồ Mới Nhất 2019– Hack Game Free Vip 7 Mod & Hack For Android Trò chơi 0
dammechiase hack game gta 5 cướp đường phố Mod GTA 5 bá đạo, đỉnh nhất game Cướp đường phố Trò chơi 0
dammechiase Hack Mod Game Commander Battle Miễn Phí Cho Android mới nhất Trò chơi 0
dammechiase Hack Game Mini Golf King Free hack mod Mini Golf King Free cho Android Trò chơi 0
dammechiase Tải Hack Free Fire Mới Nhất – MOD v7 AimBot,99,99% No Recoil, Tăng Dame cập nhật mới nhất Trò chơi 0
dammechiase Tải game Half Life - CS 1.1 mod map, mod súng cực đẹp Trò chơi 0
dammechiase tải game *** Sacred Sword Princesses 18+ Hack Sacred Sword Princesses mới nhất Mod Full God Mode X10 Dmg Trò chơi 0
dammechiase Tải hack Game Liên Quân Võ Lâm Mobile mới nhất Hack Mod Full Vàng Full Coins Full tiền money mới nhất Trò chơi 0
dammechiase Tải Hack Dream League Soccer bản mới nhất 2019 hack Mod Full Tiền Và Đội Hình U23 Việt Nam Trò chơi 0
dammechiase Tải Hack Sniper 3D Assassin – Mod Game Sát Thủ Bắn Tỉa Hack Full Tiền Cho Android Trò chơi 0

Similar threads

New posts New threads New resources

Back
Top