We help IT Professionals succeed at work.
Get Started

Redirecting https to http when loading site

381 Views
Last Modified: 2015-03-23
We would like the FQDN https://www.workforcesoftware.com forwarded to http://www.workforcesoftware.com as we don't currently have an HTTPS based offering of the wordpress site.

We have tried a few things in .htaccess but to no avail. Here is the current .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Options All -indexes

<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresActive on
ExpiresDefault "access plus 30 days"
Header unset ETag
FileETag None
</FilesMatch>

<FilesMatch "\.(?i:pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
AddOutputFilterByType DEFLATE font/truetype font/opentype
</IfModule>


RewriteCond %{HTTP_HOST} ^workforcesoftware\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.workforcesoftware\.ca$
RewriteRule ^/?$ "http\:\/\/www\.workforcesoftware\.com\/canada\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^workforcesoftwarellc\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.workforcesoftwarellc\.co\.uk$
RewriteRule ^/?$ "http\:\/\/workforcesoftware\.com\/united\-kingdom" [R=301,L]


RewriteCond %{HTTP_HOST} ^workforcesoftware\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.workforcesoftware\.com\.au$
RewriteRule ^/?$ "http\:\/\/wfsaustralia\.com" [R=301,L]

Open in new window


As of right now, it prompts for a security error and then shows the default cPanel error page:

2015-03-20-08-50-42-Default-Web-Site-Pag
Comment
Watch Question
Marketing Technologist
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE