Jump to content

Featured Replies

Posted

Removing the /forum/ text from our URL's

 

Edit furlTemplates.php in admin/applications/forums/extensions/

 

Find this code

 

(about line 53)

 

'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' ) ) ) ),

And replace with this code.

 

 'showforum'     => array( 'app'               => 'forums',
                                                        'allowRedirect' => 1,
                                                        'out'           => array( '#showforum=(.+?)(&|$)#i', '$1-#{__title__}/$2' ),
                                                        'in'            => array( 'regex'   => "#/forum/(\d+?)-#i",
                                                                                                          'matches' => array( array( 'showforum', '$1' ) ) ) ),

After that then log into your Admin cPanel and select Manage Applications & Modules -> Rebuild FURL Cache

 

still working on removing the /topic/ from the URL

 

ps.. I'm not sure I'll keep this setup like this.. I ran into a problem calling my CSS from on ip.content when I removed the /forum/ url

The topic isn't that bad but the forum needs to go. One of the first things I will implement if I choose to make the switch. Thanks Brandon.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...