Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: kai920 on February 13, 2006, 01:47:58 AM

Title: Unbridging from Joomla, and com_smf links
Post by: kai920 on February 13, 2006, 01:47:58 AM
I've decided to move away from Joomla, and go towards a Tinyportal + SMF setup.  Is there a clever way to re-program my webserver to redirect all com_smf links to "normal" SMF URLs?

For example, change these two Joomla URLs into the SMF equivalent:

1. http://www.kaitech.hk/index.php?option=com_smf&Itemid=71&topic=385.0 OR
2. http://www.kaitech.hk/component/option,com_smf/Itemid,71/topic,385.0 (SEF enabled)

to http://www.kaitech.hk/forums/index.php?topic=385.0

Thanks!
Title: Re: Unbridging from Joomla, and com_smf links
Post by: Kindred on February 13, 2006, 08:00:15 AM
I suppose you could use .htaccess...
Title: Re: Unbridging from Joomla, and com_smf links
Post by: kai920 on February 13, 2006, 11:18:34 AM
Any more hints ???

Found this
http://www.simplemachines.org/community/index.php?topic=68581.0
Title: Re: Unbridging from Joomla, and com_smf links
Post by: kai920 on February 13, 2006, 12:02:16 PM
From this thread: http://www.simplemachines.org/community/index.php?topic=46963.0


RewriteRule ^forums/(index.php)?$ /index.php?option=com_smf&Itemid=175&
RewriteRule ^forums/index.php/(.*)$ /component/option,com_smf/Itemid,175/$1
RewriteRule ^forums/index.php\?(.*)$ /component/option,com_smf/Itemid,175/?$1


The above code seems to redirect from /forums to the com_smf component.

Theoretically, could I not reverse it and it would redirect from com_smf to normal SMF urls... something like this?

RewriteRule /index.php?option=com_smf&Itemid=71& ^forums/(index.php)?$
RewriteRule /component/option,com_smf/Itemid,71/$1 ^forums/index.php/(.*)$
RewriteRule /component/option,com_smf/Itemid,71/?$1 ^forums/index.php\?(.*)$
Title: Re: Unbridging from Joomla, and com_smf links
Post by: kai920 on February 14, 2006, 12:40:30 PM
any help?  ::)