Hi, I have one Ip, i mapped domain, and Installed SSL (let’s encrypt). Now main domain is working on https. but IP working on HTTP.
every thing is working fine, but my CodeIngiter htaccess not working.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]
I am using virtual host. and using Alias.
What are possible problems?
I have checked Apache error log. error.log showing bellow erorrs.
AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.16 OpenSSL/1.0.1f configured – resuming normal operations
AH00094: Command line: ‘/usr/sbin/apache2’
Please help me.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
I would check that your newly created https virtualhost configuration incldues AllowOverride All as an option. Without this the default may not allow the rules in your .htaccess file to be used.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.