Switch btw https and http and .htaccess configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have numerous issues that I need some assistance. I'm creating a
website that will involve credit card processing. I have SSL
certificate installed and that part of the code works. The problem is
when I process credit cards I invoke https and when im done I want to
switch back to http://www.example.com. I was looking for the best
solution online to do that and a lot of people suggested mod_rewrite.
I have not used mod_rewrite before so I went to investigate how to use
it. So my second problem kicks in here. I have created a .htacess file
and configure my http.conf to this

<Directory "/home/njau_ndirangu/public_html/docs">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride Options FileInfo AuthConfig Limit 
AllowOverride AuthConfig
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
     
</Directory>

I don't think my .htaccess is being detected at all. I was wondering
how you can test mod_rewrite to make sure it is functional. I can see
the module is enabled in http.conf

LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so



So once I solve this that will bring me back to my first problem. How
do I switch between http and https?





[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux