The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

change from current urls to keyworded urls

HostXNow

Service Manager
Service Manager
HostXNow.com - Fast Host
like the title says really ^ at the moment i have these sef rewrites but i would like the urls to contain keywords. like instead of having e107 Powered Website: Forums / First Test Forum i have this instead e107 Powered Website: Forum im a totoal newb when it comes to this stuff

.htaccess

# =============================================
# FORUM PLUGIN ================================
RewriteRule forum.html plugins/forum/forum.php
RewriteRule forum([0-9]*)\.html(.*)$ plugins/forum/forum_viewforum.php?$1
RewriteRule forum([0-9]*)-([0-9]*)\.html(.*)$ plugins/forum/forum_viewforum.php?$1.$2
RewriteRule forum-t([0-9]*)\.html(.*)$ plugins/forum/forum_viewtopic.php?$1
RewriteRule forum-t([0-9]*)-([0-9]*)\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2
RewriteRule forum-t([0-9]*)-([0-9]*)-next\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.next
RewriteRule forum-t([0-9]*)-([0-9]*)-prev\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.prev
RewriteRule forum-t([0-9]*)-last\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.last
RewriteRule forum-t([0-9]*)-([0-9]*)-track\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.track
RewriteRule forum-t([0-9]*)-([0-9]*)-untrack\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.untrack
RewriteRule forum-r([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?rp.$1
RewriteRule forum-p([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?nt.$1
RewriteRule forum-e([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?edit.$1
RewriteRule forum-t([0-9]*)-report\.html(.*)$ plugins/forum/forum_viewtopic.php?$1..report
RewriteRule forum-q([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?quote.$1
RewriteRule top-poster-([0-9]*)-([0-9]*)\.html(.*)$ top.php?$1.top.forum.$2
RewriteRule top-active([0-9]*)\.html(.*)$ top.php?$1.active
RewriteRule top-active-([0-9]*)-([0-9]*)\.html(.*)$ top.php?$1.active.forum.$2

sitelinks.sc

$patterns[0] = '/plugins\/forum\/forum_viewforum\.php\?([0-9]+)/';
$replacements[0] = 'forum$1.html';
$patterns[1] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.next/';
$replacements[1] = 'forum-t$1-$2-next.html';
$patterns[2] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.prev/';
$replacements[2] = 'forum-t$1-$2-prev.html';
$patterns[3] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.track/';
$replacements[3] = 'forum-t$1-$2-track.html';
$patterns[4] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.untrack/';
$replacements[4] = 'forum-t$1-$2-untrack.html';
$patterns[5] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.last/';
$replacements[5] = 'forum-t$1-last.html';
$patterns[6] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.\.report/';
$replacements[6] = 'forum-t$1-report.html';
$patterns[7] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)/';
$replacements[7] = 'forum-t$1-$2.html';
$patterns[8] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)/';
$replacements[8] = 'forum-t$1-$2.html';
$patterns[9] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)/';
$replacements[9] = 'forum-t$1.html';
$patterns[10] = '/plugins\/forum\/forum\.php/';
$replacements[10] = 'forum.html';

e_module.php

$patterns[0] = '/plugins\/forum\/forum_viewforum\.php\?([0-9]+)/';
$replacements[0] = 'forum$1.html';
$patterns[1] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.next/';
$replacements[1] = 'forum-t$1-$2-next.html';
$patterns[2] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.prev/';
$replacements[2] = 'forum-t$1-$2-prev.html';
$patterns[3] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.track/';
$replacements[3] = 'forum-t$1-$2-track.html';
$patterns[4] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)\.untrack/';
$replacements[4] = 'forum-t$1-$2-untrack.html';
$patterns[5] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.last/';
$replacements[5] = 'forum-t$1-last.html';
$patterns[6] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.\.report/';
$replacements[6] = 'forum-t$1-report.html';
$patterns[7] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)/';
$replacements[7] = 'forum-t$1-$2.html';
$patterns[8] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)\.([0-9]+)/';
$replacements[8] = 'forum-t$1-$2.html';
$patterns[9] = '/plugins\/forum\/forum_viewtopic\.php\?([0-9]+)/';
$replacements[9] = 'forum-t$1.html';
$patterns[10] = '/plugins\/forum\/forum\.php/';
$replacements[10] = 'forum.html';
 
Last edited by a moderator:
banners
Back