Results 1 to 2 of 2
  1. #1

    Default FORCE ssl ON single/selected pages only


    Good evening Istoryans,


    Ask lang unta ko ideas about the forcing on SSL page ( using htaccess / mod_rewrite )

    what happened sa mga resources (e.g. js,images,css ) kung i force SSL nimo ang isa ka page? considering na ang page is getting resources from other directories ( e.g. dir-css, dir-js ) which inline sa forced-ssl page.

    ang current issue is though naka SSL ang page, still im getting resources from the port 80 ( seen on firebug ). na dapat port 443 lang. actually both port.

  2. #2

    Default Re: FORCE ssl ON single/selected pages only

    i see. na solve na rako guys.

    public_html .htaccess FOCE SSL APPROACH
    ...
    Code:
    RewriteCond %{HTTP_HOST} ^www\.mydomain\.com
    RewriteCond %{SERVER_PORT} !=443
    RewriteCond %{REQUEST_URI} ^\/page\.php$ [nc]
    RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [L]
    
    
    RewriteCond %{HTTP_HOST} ^www\.mydomain\.com
    RewriteCond %{SERVER_PORT} !=80
    RewriteCond %{REQUEST_URI} !^\/page\.php [nc]
    RewriteRule .* http://%{SERVER_NAME}%{REQUEST_URI} [L]
    per directory resources
    .htaccess
    Code:
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>
    
    # BEGIN Expire header 
    AuthName http://www.mydomain.com
    
    Options -Indexes
    
    RewriteBase /include-css/
    
    Options +FollowSymlinks
    RewriteEngine on

    mao ni akog solution guys.

  3.    Advertisement

Similar Threads

 
  1. Replies: 2
    Last Post: 05-10-2009, 02:47 PM
  2. Replies: 5
    Last Post: 04-21-2009, 12:42 AM
  3. How to Post on the main page of istorya? like those write ups?
    By K|SsSeR_m in forum General Discussions
    Replies: 7
    Last Post: 03-31-2008, 08:26 PM
  4. DoubleAgents Base (Currently Moving) pics on the 1st page
    By DoubleAgent in forum Hobbies & Crafts
    Replies: 30
    Last Post: 01-29-2007, 11:43 AM
  5. [VB] force window on top
    By hybrid_X in forum Programming
    Replies: 4
    Last Post: 05-01-2006, 07:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top