www.webdeveloper.com
Results 1 to 5 of 5

Thread: Url is not returning into https

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    7

    Url is not returning into https

    Hi, what is wrong with my htaccess code below. I want my user/fast-login.html and password-recovery.html to be open in https. When i entered the link https://www.mysite.com/user/fast-login.html, it automatically changes the link into http. Same thing happen with my password recovery page.

    Any idea, on what else do i need to add in my script below to make the https page work?

    Code:
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(user/fast-login.html|password-recovery.html)$ https://%{HTTP_HOST}/$1 [R=301,L]
    RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|jpe|ico|css|js)$
    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(user/fast-login.html|password-recovery.html)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|jpe|ico|css|js)$
    RewriteRule ^user/fast-login.html$ checkoutlogin.php [nc]
    RewriteRule ^password-recovery.html$ forgotpass.php [nc]

  2. #2
    Join Date
    Jun 2009
    Posts
    127
    Please make sure that you have purchased and install the SSL certificate for your site. Without that you cannot access your site with https.

  3. #3
    Join Date
    Feb 2010
    Posts
    7
    Yes, I have the SSL installed already.

  4. #4
    Join Date
    Jun 2009
    Posts
    127
    You will have to assign the dedicated IP address to your site to access the site with https. If you are using the shared server IP address then you will face problem accessing the site with https.

  5. #5
    Join Date
    Feb 2010
    Posts
    7
    Yes, there is a dedicated IP already. I have the script to make all site in https and i have tested it, it works fine but I don't need the whole site to be in https. I only need few page to be in https. I have that code above for selective https but it isn't working. I don't know what is the issue because im not expert in htaccess. I'm still a newbie.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles