redirecting bridged forums to unwrapped forums via htaccess

Started by DAB Empire, January 30, 2006, 03:27:19 PM

Previous topic - Next topic

DAB Empire

I have been using this for a while and have a question.  My htaccess file currently has a line that says:

RewriteRule ^forums/(index.php)?$ /index.php?option=com_smf&Itemid=175&

Is there a way I could reverse that?  I'd like all bridge function to point to the appropriate assocaited forum url.

Example:

http://www.eliterides.com/index.php?option=com_smf&Itemid=175&action=pm

would become

http://www.eliterides.com/forums/index.php?&action=pm

I realize this may sound senseless, but there is a reason behind it.

Orstio

Redirecting away from the stand alone forum by Apache redirects in the .htaccess will cause numerous problems.

DAB Empire


Orstio

 ???

Uninstalling Mambo or the bridge, and have a lot of links pointing to it?

DAB Empire

I don't want to uninstall anything.  I want to keep the bridge, to take advantage of it's features, but on the forums I would like all the functions to point to the non-bridged links.  If this means using redirects, perfect.  I think that would work the best.  I think it sounds more non-sensical trying to rationalize it.  If it is possible I will show you the benefits.

Long story, short.  How do I simply accomplish the same sort of redirect as above with .htaccess.  I don't know what characters in their entireity to swap.  I've tried just swapping their places in that line, but it didn't do much.

Orstio

So, you want to bridge login and registration, and keep the forum stand alone?

DAB Empire

More or less.  I want the ability to use all the bridge module functions, but have them actually point to the non-bridged forums.  Latest posts go to non-bridged latest posts.  Same with login, etc.

I figure an easy way would be to leave the bridged components and modules as is and just use redirects like I have been... if I just knew how to swap the two bits of it.

Orstio

You're aware that the non-bridged login doesn't login to Mambo, right?

Kindred

Elite...  you're just asking for trouble doing things that way.

If you want your forum unconnected to mambo, then do things the right way.   Use straight SSI calls, make some modules yourself and don't use the bridge at all...
Сл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."

DAB Empire

Yes, I am aware that the non-bridged login doesn't login to Mambo.

@ Kindred.  I do want things connected with Mambo.

I think you guys are trying to rationalize this, because it kind sounds odd.  And, I agree it does sounds odd.

I'm just asking if anyone knows how to reverse the redirect I posted above.  Nothing more.  Nothing less.  I know everything else that's  been pointed out already.  If no one knows that solves the question.  If someone does, great.

Thanks for the help though. :)

chadness

Ignoring if this is the best method to do what you want to do, or if this will break something, here's an answer.  I'm not great with these, but this should do it.
Just find the URL you want to change from, the one you want to change to, and put lines in like this:
RedirectMatch permanent ^/index.php?option=com_smf&Itemid=175&action=pm$ http://www.eliterides.com/forums/index.php?&action=pm

DAB Empire

#11
Thank you for beind considerate of my question chadness.  :)

Is there a way to do this globally instead of url by url?  I'm not the best with htaccess, but something like:

RedirectMatch permanent ^/index.php?option=com_smf&Itemid=175&$ http://www.eliterides.com/forums/index.php?&$

I would like com_smf&Itemid=175&abc to convert to forums/index.php?&action=abc

So, if I had the bridged latest posts module published and it went to

http://www.eliterides.com/index.php?option=com_smf&Itemid=175&topic=4948

it would go to

http://www.eliterides.com/forums/index.php?&topic=4948

instead?

chadness

I suspect there is, but I'm REALLY inexperienced with that.

Advertisement: