![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 29 April 2017 at 20:25, Nicola
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