Unbridging from Joomla, and com_smf links

Started by kai920, February 13, 2006, 01:47:58 AM

Previous topic - Next topic

kai920

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!

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

kai920


kai920

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\?(.*)$

kai920


Advertisement: