TinyPortal

Development => Support => Topic started by: kai920 on February 14, 2006, 02:57:29 AM

Title: .htaccess forwarding
Post by: kai920 on February 14, 2006, 02:57:29 AM
I've decided to move away from Joomla, and go towards a Tinyportal   O0+ SMF setup.  In doing so, however, I'm afraid my existing com_smf links will no longer work. Is there a clever way to re-program my webserver to redirect all com_smf links to "normal" SMF URLs?

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

http://www.kaitech.hk/index.php?option=com_smf&Itemid=71&topic=385.0 OR
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

I've searched on SMF forums and came up with this, would it work? -

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


Thanks!