Installing SSL for codeigniter |
Dear All,
I have just installed SSL for my site. and put following in htaccess for redirection. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] Now home page is working fine, but when i tried to open Admin Page or any other page it gives 404 error. then i removed above code from htaccess and try open manually by writing **redacted**, then its working absolutely fine for all pages. Please guide me accordingly. Thanks
Hi, try the following instead.
Code: <IfModule mod_rewrite.c>
I did the same as above provided instructions. but same error. as home page is working fine but all other pages showing 404 error.
Can you post your complete .htaccess, to see if you have multiple entries of the same thing.
(04-20-2020, 09:14 AM)jreklund Wrote: Can you post your complete .htaccess, to see if you have multiple entries of the same thing.below you can htaccess file code for **redacted** Code: ## EXPIRES CACHING ##
Hi,
I have installed SSL on my server. In config.php file I changed $config['base_url'] = 'http://doc.example.com/'; to $config['base_url'] = 'https://doc.example.com/'; and $config['index_page'] = 'index.php'; to $config['index_page'] = ''; to remove index.php from URL. Unfortunately URLs for HTTPS requests except of home page do not work properly. As a result URLs like https://doc.example.com/page1 return "page to found". My .htaccess Code: <IfModule mod_rewrite.c> I use CI v3.1.11. Could someone please help me? UPDATE Setting AllowOverride All in apache2.conf solved the problem. |
Welcome Guest, Not a member yet? Register Sign In |