Posted February 18, 201015 yr 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.
February 18, 201015 yr Administrators 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.
February 18, 201015 yr Administrators 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.
March 18, 201014 yr 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?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.