Help - Search - Members - Calendar
Full Version: Backward Compatibility With Zaurususergroup.com
OESF Forums > Everything Else > Site Specific Forums > Site Suggestions, Requests, and Updates
maslovsky
Now that ZUG has moved to .org domain and its forums to oesf.org, one problem appeared. All linked to the old forums in zaurususergroup.com are broken. However this could have been avoided by settings up the following:

http://www.zaurususergroup.com/forums should redirect to http://www.oesf.org/forums instead of http://www.zaurususergroup.com/forums. Or http://www.zaurususergroup.org/forums should in its turn redirect to http://www.oesf.org/forums

In any case all links to the old forums in .com domain would still work! There are lots of links to the ZUG forums on the net these days and it's a pity to break them all at once.

I'm sure this is very easy to set up, since I have similar configuration for cacko.biz: http://cacko.biz/cacko redirects to one page, while http://cacko.biz/cacko/feed - to another one.
offroadgeek
I agree, this would be great to do. I just don't know how to setup a redirect where if someone where to try to visit http://www.zaurususergroup.com/forums/inde...showtopic=10229 and have it redirect to http://www.oesf.org/forums/index.php?showtopic=10229.

If you know how to set this up, can you let me know how, or send me an example of how you have cacko.biz setup?

Thanks
maslovsky
Actualy Laze did redirection setup for me, I will ask him.
Laze
Actually its my good friend Peter who helped me..

Edit apache httpd.conf

For all redirects..

<VirtualHost *>
ServerName zaurususergroup.com
ServerAlias www.zaurususergroup.com
Redirect permanent / http://www.oesf.org
</VirtualHost>


Just formus

<VirtualHost *>
ServerName zaurususergroup.com
ServerAlias www.zaurususergroup.com
Redirect permanent /forums/ http://www.oesf.org/forums/
</VirtualHost>
offroadgeek
Thanks, but that's just a simple redirect, and that's already done. If you go to zaurususergroup.com it will redirect to zaurususergroup.org. If you go to zaurususergroup.com/forums it will redirect to oesf.org/forums.

The problem is I can't figure out how to redirect a direct link to a post, such as:

http://www.zaurususergroup.com/forums/inde...showtopic=10229

to be automatically redirected to:

http://www.oesf.org/forums/index.php?showtopic=10229

At least now, it will take you to the forums, but not to the specific topic.

Is this possible?
pelrun
Should be - you can use apache's mod_rewrite to do anything you want to URLs if you can write the appropriate regular expression. Something like this:

RewriteEngine on
RewriteRule ^/forums/(.*) http://www.oesf.org/forums/$1 [R,L]

stuck before the basic redirect might be all that's needed.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.