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] Nicola