MyBB Community Forums

Full Version: Redirect https urls to http
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am planing to remove my ssl because we are a non profit organization so the only way to support ourselves is via displaying ads. Now being on ssl makes us unfit for most of the advertising netwroks and adsense earns way less than it earns of http pages.
For this reason we have decided to remove ssl. I used the following code to redirect http to https urls
url
www.braindirector.com/forum
code used to redirect to https
RewriteCond %{HTTP_HOST} ^braindirector.com$
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/forum/$1 [R=301,L]
now i need the code that will reverse the redirection. The opposite of the one, posted above
you can try like this
RewriteCond %{SERVER_PORT} ^443$ [OR]

RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://braindirector.com/$1 [R=301,L]

(ref~)
The first one did not work. Second one helped me to redirect the domain name. Post urls are still a problem