This question about Configuration: Answered

Configure Apache Redirect with a topic

I am able to do this in Apache
   Redirect permanent / http://wiki.cfcl.com/Typedia/

And it works as expected. The URL http://mbtips.info redirects to http://wiki.cfcl.com/Typedia/.

However, I can't figure out what to do to add onto the end of the URL. An attempt to use http://mbtips.info/WhatsMyType does not go to http://wiki.cfcl.com/Typedia/WhatsMyType (as I think it should, as written), but to http://wiki.cfcl.com/TypediaWhatsMyType.

If I put a double // into the URL address bar, it works: http://mbtips.info//WhatsMyType, but that's a brittle workaround.

Any suggestions?

I've tried
  Redirect permanent / http://wiki.cfcl.com/Typedia/
  Redirect permanent / http://wiki.cfcl.com/Typedia//
  Redirect permanent / http://wiki.cfcl.com/Typedia/\/

They all turn into .../TypediaWhatsMyType

Apparently these two do work; I had to clear the Browser cache.
  RedirectMatch 301 /(.*)$ http://wiki.cfcl.com/Typedia/$1
  RedirectMatch 301 (.*)/(.*) http://wiki.cfcl.com/Typedia/$2

-- VickiBrown - 13 Oct 2015

 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r3 - 14 Oct 2015, VickiBrown
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy