Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
// Start Output Buffering
ob_start();
// Change links to F-url
function f_url($buf) {
#########################################################
# MOD F-URL for php-fusion v6.01.10 #
# language version - en #
# author nick: slawekneo from Polish support php-fusion #
# author name: Slawomir Nonas; translated by jantom #
# http://www.php-fu... #
#########################################################
if(!substr_count($_SERVER[REQUEST_URI],"administration")){
$buf = preg_replace('#readarticle\.php\?article_id=([0-9]*?)(\'|")#si', 'read-art-\1.html\2', $buf);
$buf = preg_replace('#articles\.php\?cat_id=([0-9]*?)(\'|")#si', 'art-cat-\1.html\2', $buf);
$buf = preg_replace('#articles\.php#si', 'art.html', $buf);
$buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(\'|")#si', 'file-cat-\1.html\2', $buf);
$buf = preg_replace('#downloads\.php\?cat_id=([0-9]*?)(&|&)download_id=([0-9]*?)(\'|")#si', 'file-cat-\1-download-\3.html\4', $buf);
$buf = preg_replace('#downloads\.php#si', 'files.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('#forum/index\.php#si', 'forum/forum.html', $buf);
$buf = preg_replace('#viewforum\.php\?forum_id=([0-9]*?)(\'|")#si', 'see-forum-\1.html\2', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|")#si', 'see-forum-\1-thread-\3.html\4', $buf);
$buf = preg_replace('#viewthread\.php\?rowstart=([0-9]*?)(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|")#si', 'see-part-\1-forum-\3-temat-\5.html\6', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)pid=([0-9]*?)\#post_([0-9]*?)(\'|")#si', 'see-forum-\1-thread-\3-post-\5.html#post_\6\7', $buf);
$buf = preg_replace('#post\.php\?action=newthread(&|&)forum_id=([0-9]*?)(\'|")#si', 'new-thread-forum-\2.html\3', $buf);
$buf = preg_replace('#viewthread\.php\?forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)rowstart=([0-9]*?)(\'|")#si', 'see-forum-\1-thread-\3-part-\5.html\6', $buf);
$buf = preg_replace('#post\.php\?action=edit(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)post_id=([0-9]*?)(\'|")#si', 'edit-forum-\2-thread-\4-post-\6.html\7', $buf);
$buf = preg_replace('#post\.php\?action=reply(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(\'|")#si', 'rep-forum-\2-thread-\4.html\5', $buf);
$buf = preg_replace('#post\.php\?action=reply(&|&)forum_id=([0-9]*?)(&|&)thread_id=([0-9]*?)(&|&)post_id=([0-9]*?)(&|&)quote=([0-9]*?)(\'|")#si', 'rep-forum-\2-thread-\4-post-\6-quote-\8.html\9', $buf);
$buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(\'|")#si', 'links-kat\1.html\2', $buf);
$buf = preg_replace('#weblinks\.php\?cat_id=([0-9]*?)(&|&)weblink_id=([0-9]*?)(\'|")#si', 'links-kat-\1-see-page-\3.html\4', $buf);
$buf = preg_replace('#weblinks\.php#si', 'links.html', $buf);
$buf = preg_replace('#news_cats\.php#si', 'news-cat.html', $buf);
$buf = preg_replace('#news\.php\?readmore=([0-9]*?)(\'|")#si', 'read-news-\1.html\2', $buf);
$buf = preg_replace('#contact\.php#si', 'contact.html', $buf);
$buf = preg_replace('#photogallery\.php\?album_id=([0-9]*?)(\'|")#si', 'galery-album-\1.html\2', $buf);
$buf = preg_replace('#photogallery\.php\?photo_id=([0-9]*?)(\'|")#si', 'galery-photo-\1.html\2', $buf);
$buf = preg_replace('#showphoto\.php\?photo_id=([0-9]*?)(\'|")#si', 'galery-photo-enlarge-\1.html\2', $buf);
$buf = preg_replace('#photogallery\.php#si', 'galery.html', $buf);
$buf = preg_replace('#search\.php\?stype=f#si', 'search-forum.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', 'news-for-print-\2.html\3', $buf);
$buf = preg_replace('#print\.php\?type=A(&|&)item_id=([0-9]*?)(\'|")#si', 'art-for-print-\2.html\3', $buf);
if(!substr_count($_SERVER[REQUEST_URI],"forum")) $buf = preg_replace('#index\.php#si', 'home.html', $buf);
#$buf = preg_replace('#lostpassword\.php#si', 'pass-remind.html', $buf);
$buf = preg_replace('#ion/home\.html#si', 'ion/index.php', $buf);
}
return $buf;
}
// Start Output Buffering
ob_start("f_url");
#########################################################
# MOD F-URL for php-fusion v6.01.10 #
# language version - en #
# author nick: slawekneo from Polish support php-fusion #
# author name: Slawomir Nonas; translated by jantom #
# http://www.php-fusion.pl #
#########################################################
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^art\.html$ articles.php [N]
RewriteRule ^art-cat-([0-9]+)\.html$ articles.php?cat_id=$1 [L]
RewriteRule ^read-art-([0-9]+)\.html$ readarticle.php?article_id=$1 [L]
RewriteRule ^home\.html$ index.php [N]
RewriteRule ^files\.html$ downloads.php [N]
RewriteRule ^faq\.html$ faq.php [N]
RewriteRule ^links\.html$ weblinks.php [N]
RewriteRule ^news-cat\.html$ news_cats.php [N]
RewriteRule ^news\.html$ news.php [N]
RewriteRule ^read-news-([0-9]+)\.html$ news.php?readmore=$1 [L]
RewriteRule ^contact\.html$ contact.php [N]
RewriteRule ^galery\.html$ photogallery.php [N]
RewriteRule ^search-forum\.html$ search.php?stype=f [N]
RewriteRule ^search\.html$ search.php [N]
RewriteRule ^profile-([0-9]+)\.html$ profile.php?lookup=$1 [L]
RewriteRule ^galery-album-([0-9]+)\.html$ photogallery.php?album_id=$1 [L]
RewriteRule ^galery-photo-([0-9]+)\.html$ photogallery.php?photo_id=$1 [L]
RewriteRule ^galery-photo-enlarge-([0-9]+)\.html$ showphoto.php?photo_id=$1 [L]
RewriteRule ^file-cat-([0-9]+)\.html$ downloads.php?cat_id=$1 [L]
RewriteRule ^file-cat-([0-9]+)-download-([0-9]+)\.html$ downloads.php?cat_id=$1&download_id=$2 [L]
RewriteRule ^faq-cat-([0-9]+)\.html$ faq.php?cat_id=$1 [L]
RewriteRule ^links-cat-([0-9]+)\.html$ weblinks.php?cat_id=$1 [L]
RewriteRule ^links-cat-([0-9]+)-see-page-([0-9]+)\.html$ weblinks.php?cat_id=$1&weblink_id=$2 [L]
RewriteRule ^news-for-print-([0-9]+)\.html$ print.php?type=N&item_id=$1 [L]
RewriteRule ^art-for-print-([0-9]+)\.html$ print.php?type=A&item_id=$1 [L]
#RewriteRule ^register\.html$ register.php [N]
#RewriteRule ^pass-remind\.html$ lostpassword.php [N]
#########################################################
# MOD F-URL for php-fusion v6.01.10 #
# language version - en #
# author nick: slawekneo from Polish support php-fusion #
# author name: Slawomir Nonas #
# http://www.php-fusion.pl #
#########################################################
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/forum/(.*)$
RewriteRule ^forum\.html$ forum/index.php [L]
RewriteRule ^see-forum-([0-9]+)\.html$ forum/viewforum.php?forum_id=$1 [L]
RewriteRule ^see-forum-([0-9]+)-thread-([0-9]+)\.html$ forum/viewthread.php?forum_id=$1&thread_id=$2 [L]
RewriteRule ^see-part-([0-9]+)-forum-([0-9]+)-thread-([0-9]+)\.html$ forum/viewthread.php?rowstart=$1&forum_id=$2&thread_id=$3 [L]
RewriteRule ^see-forum-([0-9]+)-thread-([0-9]+)-post-([0-9]+)\.html$ forum/viewthread.php?forum_id=$1&thread_id=$2&pid=$3 [L]
RewriteRule ^see-forum-([0-9]+)-thread-([0-9]+)-part-([0-9]+)\.html$ forum/viewthread.php?forum_id=$1&thread_id=$2&rowstart=$3 [L]
RewriteRule ^edit-forum-([0-9]+)-thread-([0-9]+)-post-([0-9]+)\.html$ forum/post.php?action=edit&forum_id=$1&thread_id=$2&post_id=$3 [L]
RewriteRule ^rep-forum-([0-9]+)-thread-([0-9]+)\.html$ forum/post.php?action=reply&forum_id=$1&thread_id=$2 [L]
RewriteRule ^rep-forum-([0-9]+)-thread-([0-9]+)-post-([0-9]+)-quote-([0-9]+)\.html$ forum/post.php?action=reply&forum_id=$1&thread_id=$2&post_id=$3"e=$4 [L]
RewriteRule ^new-thread-forum-([0-9]+)\.html$ forum/post.php?action=newthread&forum_id=$1 [L]
$buf = preg_replace('#contact\.php#si', 'contact.html', $buf);
RewriteRule ^contact\.html$ contact.php [N]
/public_html/path_to_fusion/.htaccess
/public_html/path_to_fusion/forum/.htaccess