Hi:
I am brand new to developing websites and I have a website hosted on Hostgator which is the primary domain. There are a number of addon domains under my main domain.
I am trying to have one page on my website redirect to be https and here is the code I have been using:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Redirect HTTPS requests for non-SSL pages back to HTTP. (Note that shared objects
# such as images on both HTTP and HTTPS pages are excluded from this rule)
RewriteCond %{SERVER_PORT} =443
RewriteCond $1 !^shop/checkout
RewriteCond $1 !\.(gif|jpe?g|png|ico|css|js)$
RewriteRule ^(.*)$ http:
//%{HTTP_HOST}/$1 [R=301,L]
#
# Redirect HTTP requests for SSL checkout page to HTTPS
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(shop/checkout)$ https:
//%{HTTP_HOST}/$1 [R=301,L]
#
# Redirect extensionless page requests to remove trailing slash
RewriteRule ^(shop/checkout)/$ http:
//%{HTTP_HOST}/$1 [R=301,L]
#
The website is a Wordpress blog and the file structure is:
http://www.example.com/shop/checkout/
I tried the above code which I found here but nothing happens. I cleared the cache but still noting happens.
I would appreciate any help.
JetAviator7
[edited by: jdMorgan at 12:47 am (utc) on May 21, 2010]
[edit reason] de-linked, switched to example.com [/edit]