TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,946
  • Latest: Sparo
Stats
  • Total Posts: 195,713
  • Total Topics: 21,274
  • Online today: 74
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

.htaccess forwarding

Started by kai920, February 14, 2006, 02:57:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kai920

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!

This website is proudly hosted on Crocweb Cloud Website Hosting.