Jump to content

Recommended Posts

  • Administrators
Posted

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.

  • Administrators
Posted

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.

  • 4 weeks later...
Posted
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...