Archive for 2020

How to redirect all http request into https using htaccess?

To redirect http url or request into https version you need to add certain rules into .htaccess file. To do this you need to create .htaccess file or edit if you already have it. Add the following rule in .htaccess file: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourdomain.com/$1 The third line does the main work. It redirects all request into https version. Just change yourdomain.com into your ... Full story

How to solve www version of website not working?

Sometimes due to misconfiguration www version of the website does not works. i.e https://domain.com works and https://www.domain.com does not works. To solve this issue you need to add DNS record. Add the following and save: Type:CNAME Name:www Value:@ TTL:3 Hour To do this on godaddy server follow the steps: Login to your account. Go to My Products > Domains. Go to DNS of respective domain. Click on ADD button. Add the value for Type, Name, ... Full story

How to solve java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer

To solve the this problem just put the following code below tag on the manifiest tag. For eg: <application android:icon="@drawable/icon" ...... android:theme="@style/AppTheme.NoActionBar"> <uses-library android:name="org.apache.http.legacy" android:required="false"/> This problem is caused by targeting target Android 9 and above versions ... Full story
Copyright © 2024 Programmer to Programmer- A website for web programming and mobile application programming tutorials.
Wordpress themes