apache - https on 2 forms only, all others force back to http -


google has been indexing duped content. seo nightmare...

i have 2 forms need ssl.

/single

/joint

i'd else redirected non ssl (http://)

i've tried various different things forums here, numerous times...

how enable https on pages htaccess?

the first part works, is, https redirects http /single & /joint redirect index.php or "home page"

thanks in advance advice.

try more clear...

with jon's code added .htaccess file

https .com/other-page

redirects http .com/other-page

but ones matter

https .com/single & .com/joint

both redirect to

http .com/index.php

here link standard joomla .htaccess file

http://docs.joomla.org/preconfigured_htaccess

in addition using rewrite rules redirect www non www

rewritecond %{http_host} !^website.com rewriterule (.*) http://website.com/$1 [r=301,l]

add these rules htaccess file in document root:

rewriteengine on  rewritecond %{https} off rewriterule ^(single|joint) https://%{http_host}%{request_uri} [l,r=301]  rewritecond %{https} on rewriterule !^(single|joint) http://%{http_host}%{request_uri} [l,r=301] 

as long form submitted request. request body in post submission may not included after redirect.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -