Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

September 21, 2020, 06:57:18 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 190980
  • Total Topics: 20889
  • Online Today: 87
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 59
Total: 59

Author Topic: .htaccess forwarding  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

kai920

  • Guest
.htaccess forwarding
« on: February 13, 2006, 07:57:29 PM »
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? -

Code: [Select]
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!