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 'http://nikolaskallis.com/contact/', 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 /
https://nikolaskallis.com' 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 / https://nikolaskallis.com/'
or
'Redirect . https://nikolaskallis.com'

then it works correct

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

'Redirect . https://nikolaskallis.com' 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/nikolaskallis.com/' is for HTTP and contains one file only - '.htaccess', which redirects to HTTPS, which is kept in '/var/www/https/nikolaskallis.com/'.



Regards,

Nikolas Kallis

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to