News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

January 26, 2020, 05:05:08 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189424
  • Total Topics: 20795
  • Online Today: 192
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 86
Total: 86

Author Topic: .htaccess forwarding  (Read 1708 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!