On 29 April 2017 at 20:25, Nicola <nvitacolo...@gmail.com> wrote:
> On 29/04/2017 18:05, Mojca Miklavec wrote:
>>
>> On 29 April 2017 at 09:47, Nicola wrote:
>>>
>>> For a while now, when I connect to contextgarden.net, I get redirected
>>> to wiki.contextgarden.net// (note the double slash). Is it just me, or
>>> something to be fixed in the web site?
>>
>>
>> The server uses
>>     RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1
>>
>> I'm looking for a better suggestion.
>
> Wouldn't just
>
>   Redirect permanent / http://wiki.contextgarden.net/
>
> do? (It may be recursive if the virtual host is the same.)
>
> If not, how about:
>
> RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1
>
> As a last resource, mod_rewrite should work:
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC]
> RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L]

Thank you for suggestions, I'll do some testing.

In case I forget, please remind me about this after the 4th May. We
currently have as good as no internet connectivity and I would hate to
break the server while experimenting and then being unable to do
anything afterwards.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to