After setting SSL in the Apache default-ssl.conf file I was not able to access the website using https which was showing ERR_SSL_PROTOCOL_ERROR. Also the curl command was showing the following error: curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number Fix: sudo a2ensite default-ssl and restart apache2. Note: Before that you need to ensure following modules are also … Continue reading curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Category: htaccess
codeigniter site inner links showing 403 forbidden access
The site was showing some error and I downgraded the PHP from 5.6 to 5.4. But only home page was loading. Added the following code in the .htaccess file to correct the issue. IfModule mod_rewrite.c RewriteEngine On #RewriteBase /your_project/ RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 … Continue reading codeigniter site inner links showing 403 forbidden access
How to change time zone for a domain using .htaccess
Open your .htaccess file and add the following line: SetEnv TZ location where location is the specific timezone you want to define. A list of Supported Timezones can be found here: http://www.php.net/manual/en/timezones.php
Issue : no input file specified
Problem was with .htaccess file root@server [/home/bunny/public_html/bunnytech]# cat .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteBase /bunnytech/ Fix just changed the line RewriteRule ^(.*)$ index.php?/$1 [L]
How to suspend a parked domain using .htaccess rule
We can suspend a parked domain using Rewrite rule in .htaccess while keeping the main domain intact. In .htaccess file, add the following. RewriteCond %{HTTP_HOST} ^parkdomian.org$ [OR] RewriteCond %{HTTP_HOST} ^www.parkdomian.org$ RewriteRule ^(.*)$ http://x.x.x.x/suspend.txt [R=301,L] where x.x.x.x is the server IP.