Hello Star Moon,
                          I don't know why you are escaping the dot in the
htaccess file. I have never had to escape characters in a htaccess file.

Why don't you test the referrer URL at the very beginning of the page in
PHP.

If the connection is via http instead of https then send a redirection
header to the browser.

The header MUST be the very first thing sent as even if one space or line
feed is sent to the browser then the header has already been sent and cannot
be sent again.

Look up header() and referrer() at PHP.net

Thanks, Rob.

----- Original Message ----- 
From: "star moon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 05, 2006 3:12 PM
Subject: [php-list] http to https for specific file by .htaccess


> Hi Groups
>     I want to change http://xyz.com/abs.php
>   to https://xyz.com/abs.php
>     by .htacces
>
>   my code is
>   <IfModule mod_rewrite.c>
> RewriteEngine  on
> RewriteRule ^https://xyz\.com/abs\.php$  http://xyz\.com/abs\.php [L]
> </IfModule>
>   but it is not working
>
>   can any body suggest write code
>
>   Thanks
>
>
>
>
> ---------------------------------
>  Here's a new way to find what you're looking for - Yahoo! Answers
>  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
Get it NOW
>
> [Non-text portions of this message have been removed]
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>





Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to