The following code can be placed in the appropriate .htaccess file or configuration file to redirect from http to https for any file in a given directory. This works great for my use.
RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{PATH_INFO} ^$ RewriteRule ^(.*) https://my.example.net/fred/ [L] RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*) https://my.example.net/fred/$1 Thanks to all who responded. I finally found the correct answer in the archives which I missed the first time I looked. Mike > Subject: Re: Apache ReDirect > I meant to add that it can be code added in the pages themselves > unless there is a more general solution. > > Mike > > > > > I want to be able to redirect requests for certain pages to port > > 443 ie https vs http. I remember seeing this done with just a > > few lines of code but can't find the reference. Any help > > appreciated. > > > > Thanks, > > > > Mike > > > > > -- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list