Brent Wilson Posted February 18, 2010 Posted February 18, 2010 I noticed you have it setup like that here. How do I remove the extra /forum/ that is added to the url? /topic/ to for threads if you don't mind. Quote
Administrators AWS Posted February 18, 2010 Administrators Posted February 18, 2010 You'd have to edit the furl template. I have looked at it, but, haven't edited. The url's I use here are default htaccess method. Let me see if I can find the part that would have to be removed. Quote
Administrators AWS Posted February 18, 2010 Administrators Posted February 18, 2010 This should be simple to do. My furlTemplate.php had this in it: $_SEOTEMPLATES = array( 'showannouncement' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showannouncement=(.+?)((?:&|&)f=(.+?))?(&|$)#i', 'forum-$3/announcement-$1-#{__title__}/$4' ), 'in' => array( 'regex' => "#/forum-(\d+?)?/announcement-(\d+?)-#i", 'matches' => array( array( 'showannouncement', '$2' ), array( 'f', '$1' ) ) ) ), 'showforum' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showforum=(.+?)(&|$)#i', 'forum/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/forum/(\d+?)-#i", 'matches' => array( array( 'showforum', '$1' ) ) ) ), 'showtopic' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showtopic=(.+?)(&|$)#i', 'topic/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/topic/(\d+?)-#i", 'matches' => array( array( 'showtopic', '$1' ) ) ) ), 'act=idx' => array( 'app' => 'forums', 'allowRedirect' => 0, 'out' => array( '#act=idx(&|$)#i', 'index$1' ), 'in' => array( 'regex' => "#/index(/|$)#i", 'matches' => array( array( 'act', 'idx' ) ) ) ), It looks like like all you have to do is remove /forum and /topic from the 2 places in the template. Quote
Brent Wilson Posted February 19, 2010 Author Posted February 19, 2010 Awesome. One day I'll know IP.B like I do vBulletin haha Quote
Stormraven Posted March 18, 2010 Posted March 18, 2010 This should be simple to do. My furlTemplate.php had this in it: $_SEOTEMPLATES = array( 'showannouncement' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showannouncement=(.+?)((?:&|&)f=(.+?))?(&|$)#i', 'forum-$3/announcement-$1-#{__title__}/$4' ), 'in' => array( 'regex' => "#/forum-(\d+?)?/announcement-(\d+?)-#i", 'matches' => array( array( 'showannouncement', '$2' ), array( 'f', '$1' ) ) ) ), 'showforum' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showforum=(.+?)(&|$)#i', 'forum/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/forum/(\d+?)-#i", 'matches' => array( array( 'showforum', '$1' ) ) ) ), 'showtopic' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showtopic=(.+?)(&|$)#i', 'topic/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/topic/(\d+?)-#i", 'matches' => array( array( 'showtopic', '$1' ) ) ) ), 'act=idx' => array( 'app' => 'forums', 'allowRedirect' => 0, 'out' => array( '#act=idx(&|$)#i', 'index$1' ), 'in' => array( 'regex' => "#/index(/|$)#i", 'matches' => array( array( 'act', 'idx' ) ) ) ), It looks like like all you have to do is remove /forum and /topic from the 2 places in the template. What is this going to do to the SEO aspect? it could affect SEO though couldnt it? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.