OK - so I found this on that site:
RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
RewriteRule ^(.+)$ - [env=askapache:%2]
# redirect urls with index.html to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\
/([^/]+/)*index\.html\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html$
http%{ENV:askapache}://%{HTTP_HOST}/$1
[R=301,L]
# change // to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)//(.*)\ HTTP/
[NC]
RewriteRule ^.*$ http%{ENV:askapache}://%{HTTP_HOST}/%1/%2
[R=301,L]
Can you help me understand it?
I think that the first block is setting the variable
'askapache' to a value
depending on whether the request is for http or https. If the
former, its
value is null, and if the latter it's 's'. Right?
Then the next block would be used to redirect links for the
checkout page to
https, right?
But I don't get the last block. What I would want that to do
would be to
redirect any links FROM the checkout page from https back to
http.
Would this be the right way to do such things?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"zerof" <zerof@terra.com.br> wrote in message
news:g5fid6$jsf$1@forums.macromedia.com...
> Murray *ACE* escreveu:
>> So, perhaps zerof was right all along with the
posted link - could I do
>> something like this?
>>
>> RewriteRule /checkout.php
https://www.example.com/checkout.php [R=301,L]
>> RewriteRule ^/(.*):NOSSL$
http://%{SERVER_NAME}/$1 [R,L]
>>
>> The first one would redirect only the checkout page,
and the second one
>> would redirect everything else? I'm worried about an
infinite loop
>> here....
>>
> -------
> I am not sure that this is the right way to control this
isue.
> As I know, HTTP and HTTPS protocols use different ports,
(usualy 80 and
> 443, respectively).
>
> Redirect 301 is for use to folder or file Moved
Permanently.
> Redirect 302 302 may be, also, used for instance.
>
> I think that this page with Status Code Definitions,
must be useful:
>
>
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>
> ----
> ex-corde.
> zerof