Sponsored Content
Top Forums Web Development Removing VBSEO for vbulletin – Reverting back to vbulletin URLs Post 302868623 by Neo on Monday 28th of October 2013 11:04:43 AM
Old 10-28-2013
Example Forum Page Index RewriteRules

Here are example rewrite rules for the forum page indexes:

Code:
RewriteRule ^solaris/index([0-9]+)\.html$ /forumdisplay.php?f=43&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^aix/index([0-9]+)\.html$ /forumdisplay.php?f=47&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^os-x-apple/index([0-9]+)\.html$ /forumdisplay.php?f=48&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^sco/index([0-9]+)\.html$ /forumdisplay.php?f=52&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^debian/index([0-9]+)\.html$ /forumdisplay.php?f=120&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^security/index([0-9]+)\.html$ /forumdisplay.php?f=14&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^slackware/index([0-9]+)\.html$ /forumdisplay.php?f=122&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^android/index([0-9]+)\.html$ /forumdisplay.php?f=140&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^gentoo/index([0-9]+)\.html$ /forumdisplay.php?f=121&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^suse/index([0-9]+)\.html$ /forumdisplay.php?f=118&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^hardware/index([0-9]+)\.html$ /forumdisplay.php?f=136&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^programming/index([0-9]+)\.html$ /forumdisplay.php?f=104&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^bsd/index([0-9]+)\.html$ /forumdisplay.php?f=46&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1
RewriteRule ^ubuntu/index([0-9]+)\.html$ /forumdisplay.php?f=117&pp=40&sort=lastpost&order=desc&daysprune=-1&page=$1

 

We Also Found This Discussion For You

1. Post Here to Contact Site Administrators and Moderators

vbulletin addon for ads?

i'm wondering what vbulletin addon is used here to manage ads if the admin could let me know :) (1 Reply)
Discussion started by: disgust
1 Replies
ARSORT(3)								 1								 ARSORT(3)

arsort - Sort an array in reverse order and maintain index association

SYNOPSIS
bool arsort (array &$array, [int $sort_flags = SORT_REGULAR]) DESCRIPTION
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. PARAMETERS
o $array - The input array. o $sort_flags - You may modify the behavior of the sort using the optional parameter $sort_flags, for details see sort(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 arsort(3) example <?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); arsort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val "; } ?> The above example will output: a = orange d = lemon b = banana c = apple The fruits have been sorted in reverse alphabetical order, and the index associated with each element has been maintained. SEE ALSO
asort(3), The comparison of array sorting functions. PHP Documentation Group ARSORT(3)
All times are GMT -4. The time now is 08:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy