last day (14 days later) » 

2:00 PM
0
A: Redirect every request from https to http in codeigniter

Mike RockettYour .htaccess code is incorrect. The code you used (shown below) says, "If HTTPS is on, then redirect to the HTTPS version," which is not what you want. RewriteCond %{HTTPS} on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] In addition, those rule are placed at the bottom of...

 
still This webpage is not available
 
That error looks like it comes from Chrome, not from your server. Please refer to the following link to try and diagnose and solve: support.google.com/chromebook/answer/1085581?hl=en
 
same thing happening in mozilla
just cleared my cache but still getting same error.
 
Is the error exactly the same in Firefox? As in, does it say the same thing and look the same? Perhaps a screenshot will help.
That server is not responding. The .htaccess code is correct, and is not causing this issue. Perhaps Apache has not started?
 
But without https its working
 
2:02 PM
Then your Apache is not configured to use HTTPS. Did it work before?
 
no never tried.
 
And are you using a VirtualHost?
 
No domain?
 
i dont have https on my server
yeah no domain
 
2:05 PM
Your server will need to be configured to listen to port 443. You can do this in your httpd.conf file, if you have access to it.
Do you have cPanel? Are you hosting with a company or from your own server?
 
my own server
actually my client raised this issue
 
You should probably make use of a VirtualHost. Are you on Windows?
 
his browser stored url lwith https.so whenever he tried opening the same url it say This webpage is not available
no cent os
on http it works fine.i asked client to clear his cache first and then again try opening the url.
Thank 4 ur efforts mike.
 
Okay, unfortunately I'm not a server guru, and so am not sure of all the steps you need to take to set it up. I do know that you need to set up an SSL certificate on the server, and make sure that Apache listens to Port 443. Look up how to do that and, if you're having trouble setting it up, ask a new question at ServerFault.
With that aside, your htaccess code is now correct - it will work when you get the server working.
 
ok sure thanks
:-)
 

last day (14 days later) »