Tags:
create new tag
, view all tags

RedirectBySubdomainAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on RedirectBySubdomainAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on RedirectBySubdomainAddOn

-- MartinCleaver - 26 Nov 2001

Apache httpd

Here's what I did to get it working with Apache httpd:

  • change $ENV('SERVER_NAME') to $ENV('HTTP_HOST') on line 7
  • change "HTTP 1.1 302 Object Moved" to "Status: 302 Object Moved" on line 49
  • mkdir /path/to/twiki/pub/redirect/
  • move redirect.pl to /path/to/twiki/pub/redirect/index.cgi
  • add something like this to httpd.conf:
<VirtualHost fooserver>
        DocumentRoot /path/to/twiki/pub/redirect/
        ServerName redir.twiki.foo.com
        ServerAlias *.twiki.foo.com
</VirtualHost>

Thanks, Martin, this is helpful.

-- SteveMokris - 20 Jun 2003

Suggestions

-- SteveMokris - 20 Jun 2003

Thanks for your update Steve. I might install it again myself now!

As for specifying topic, yes I agree, do feel free to have a go.

I first started to write this reply thinking you had written:

To solve this problem would be neat as well. It would be best implemented by ShorterURLs and a variant of FindElsewherePlugin.

It would need to work with the existing http://twiki.foo.com/bin/view/ garbage, but given a missing web (which would look like a web with no topic but, on examination, the web would be found to not exist), it find the web with that topic and redirect to it.

That will be useful because you could then say:

and have it resolve to:

Did you think that it would be nice to not have to redirect? I did. I thought that http://codev.twiki.org/CoreTeam looks a lot less messy than http://twiki.org/bin/view/Codev/CoreTeam

But this is a ShorterURLs issue.

-- MartinCleaver - 26 Jun 2003

checked .zip into CVS

-- WillNorris - 19 Jul 2005

I added a SHORTDESCRIPTION to the "Add-On Info" section so that this add-on is represented properly in the AddOnPackage topic and query topics. Please feel free to take this into the next release.

-- PeterThoeny - 04 Nov 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-11-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.