httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolas Kallis <>
Subject Re: [users@httpd] Issue with redirection from HTTP to HTTPS
Date Wed, 06 Feb 2013 06:14:23 GMT
Dear Walter,

>> I have an issue with redirection from HTTP to HTTPS.
>> The problem is that when someone visits a directory on my website in
>> HTTP, such as '', they are redirected
>> to 'https://nikolaskallis.comcontact/', which doesn't include a forward
>> slash between '.com' and 'contact'.
>> I am using the redirect method of placing 'Redirect /
>>' in my HTTP htaccess file.
>> Can someone please tell me what I have done wrong, why this error is
>> occurring, and what I can do to to get the forward slash included in the
>> redirect?
> you have the following two possibilities
> either
> 'Redirect /'
> or
> 'Redirect .'
> then it works correct

I already thought of 'Redirect /' but don't 
want to use it because if someone enters from 
'', then they should be taken to its HTTPS 
equivalent, which is '' - not 

'Redirect .' didn't work for me. I got a 404 
because of the way my server is setup.

I have HTTP and HTTPS data kept in separate folders:

'/var/www/http/' is for HTTP and contains one file 
only - '.htaccess', which redirects to HTTPS, which is kept in 


Nikolas Kallis

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message