RewriteEngine on RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (sale|success|cancel) [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !(static|sale|success|cancel) [NC] RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond $1 !^(index\.php|resources|robots\.txt|static) [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] ### Force HTTPS RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} ^www.websiteurl.com [NC] RewriteRule ^(.*)$ http://websiteurl.com/$1 [L,R=301]

Steps to remove index.php from URL 1. Change the index_page configuration like $config[‘index_page’] = ‘’; 2. Create .htaccess file and add the following code RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] After the configuration

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> You need to add this line RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Lambda AWS Lambda you can run your code without provisioning or managing servers. you need to pay charges when your code running only. there is no charges when your code is not running. With Lambda, Run code virtually without any type of application or backend services. just put your code lambda function will take care about everything. Benefits of lambda function: NO SERVERS TO MANAGE : You don’t need to worry about to configuration server.…

What is AWS? Amazon web service is a platform that offers flexible, reliable, scalable, easy-to-use and cost-effective cloud computing solutions. building blocks can be used to create and deploy any type of application in the cloud. Reason for selecting AWS: Location: It now operates 44 availability zones within 16 geographic regions around the world. There are also 14 more availability zones in the works.Automated Multi-Region Backups: AWS offers various backup methods including AMIs and EBS…

Cloud computing provides a simple way to access servers, storage, databases and a broad set of application services over the Internet. Benefits of Cloud Computing: FlexibilityPay per serviceSecurityEnvironmental FriendlyDisaster RecoveryAutomatic Software UpdatesIncreased CollaborationWork from AnywhereDocument Control Then Amazon Web Services is the popular and most used cloud service platform which is used all around the world.

Suppose we don’t have cloud computing and we want to host a website on a server, so what is the step we need to follow? 1) Buy Stack Server 2) Think about traffic- How many users are coming daily basis. 3) Monitoring and Maintenance Server. Example: Flipkart is an e-commerce website which is acquired by Walmart. In 2014 Flipkart launched big billion day, were on that day you’ll big discounts on products across all categories.…

Installing PHP 7.2 on Mac using Homebrew Check version php -v check brew is up to date: brew update brew upgrade Unlink php version which is install in the system brew unlink php71 Now final step to download brew install php72 export PATH=/usr/local/php5/bin:$PATH