Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

bug in https

Asked Modified Viewed 4,422 times
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

hi to all

i already posted this in roadmap, here. But it was rejected. that is why i post here. please help me.

i have an SSL connection with my website
i found a bug with https

in the root of my website, i have a directory named fusion

i have a redirection in administration console, like this :
fusion.laboitemail.com --> http://laboitemail.com/fusion

When i look my website :

at this URL, all is ok
http://fusion.laboitemail.com

at this URL, all is ok
http://laboitemail.com/fusion

at this URL, all is ok (don't forget to accept auto-signed certificate)
https://laboitemail.com/fusion

BUT at this URL, NOTHING is ok
https://fusion.laboitemail.com

apache doesn't understand this URL,
then apache goes to http://www.laboitemail.com,
then my redirection goes to http://fusion.laboitemail.com

Here is my .htaccess
## Howto map /~user to /user ##
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)$ http://%{SERVER_NAME}/$1/ [R,L]
RewriteCond %{REQUEST_URI} ^/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)(.+)$ http://%{SERVER_NAME}/~$1/$2
## Howto map /users/user to /users/user ##
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/users/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)$ http://%{SERVER_NAME}/users/$1/ [R,L]
RewriteCond %{REQUEST_URI} ^/users/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)(.+)$ http://%{SERVER_NAME}/~$1/$2
##

thank you very much
0 replies

10 posts

K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

can someone help me, please ?
:)
0 replies
B
bite
B
bite 10
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Try this:

## Howto map /~user to /user ##
RewriteEngine On

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)$ https://%{SERVER_NAME}/$1/ [R,L]

RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)$ http://%{SERVER_NAME}/$1/ [R,L]

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)(.+)$ https://%{SERVER_NAME}/~$1/$2

RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^([^/]+)(.+)$ http://%{SERVER_NAME}/~$1/$2

## Howto map /users/user to /users/user ##
RewriteEngine On

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/users/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)$ https://%{SERVER_NAME}/users/$1/ [R,L]

RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/users/([^/]+)$
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)$ http://%{SERVER_NAME}/users/$1/ [R,L]

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/users/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)(.+)$ https://%{SERVER_NAME}/~$1/$2

RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/users/([^/]+)/
RewriteCond %{DOCUMENT_ROOT}/%1 !-d
RewriteCond /home/sites/%{SERVER_NAME}/users/%1 -d
RewriteRule ^users/([^/]+)(.+)$ http://%{SERVER_NAME}/~$1/$2
##
0 replies
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

bite, many many thanks, i will try your mod, tonight, this evening
i will tell you if it is ok
thank you very much
0 replies
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

i delete all my .htaccess, i insert exactly all your MOD
and i have exactly the same problem, When i look my website :

at this URL, all is ok : http://fusion.laboitemail.com
at this URL, all is ok : http://laboitemail.com/fusion
at this URL, all is ok : https://laboitemail.com/fusion

BUT at this URL : https://fusion.laboitemail.com
apache immediatly redirects to : https://www.laboitemail.com/news.php

i hope you will find a solution for my problem
i thank you so much
0 replies
— 6 months later —
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

I would appreciate a little help much if someone has another solution
i would like to know if the problem comes from php-fusion or. htaccess file ?

thank you

:)
0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

Did you create an subdomain "fusion" in your hosting admin panel?
Edited by Wanabo on 01-08-2010 14:37,
0 replies
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

wanabo, thank you for your interest in my problem

yes, i have made this :

fusion.laboitemail.com = http://laboitemail.com/fusion
0 replies
— 2 months later —
M
mpkossen
M
  • Senior Member, joined since
  • Contributed 267 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

How is you apache configured? I think you're doing a redirect on an HTTPS host, which I believe doesn't work, since it defaults back to the VirtualHost's HTTPS domain.
0 replies
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

my provider infomaniak.com tell me all is ok on the apache server. the problem commes from rhe CMS (phpfusion).
really, i don't know what to do !
is there anybody, who use phpfusion, with an account on infomaniak, who can help about this problem ?

i just want a simple thing : use https when login

thank you very much for your help mpkossen

:)
0 replies
K
kiko26
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

after many mails with infomaniak, it appairs that they did not make the wildcard ssl like they told me.
now, the wildcard is ok, and https and subdomain works good !
it is a very good news :)
i was waiting for a very long time and i thank you all for your help.
see you soon
:)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

M
M
  • Senior Member, joined since
  • Contributed 267 posts on the community forums.
  • Started 4 threads in the forums
W
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
K
K
kiko26 10
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
B
B
bite 10
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 5 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet