Category: Computer Related

How to redirect my website to be opened through HTTPS? 0

How to redirect my website to be opened through HTTPS?

In order to redirect your website to be opened through HTTPS, you should add the following rewrite rule in your .htaccess file:  RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* https://www.domain.com/%{REQUEST_URI} [R,L] This will redirect...

How to use featured image in wordpress 0

How to use featured image in wordpress

To use featured image in wordpress, You must add this line in your functions.php file if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 150, 150 ); // This is default Post...

How to check file is exist or not using php 0

How to check file is exist or not using php

We can check the file is exist or not in the folder using  file_exists function Here is a simple code to check the presence of the file $add=”images/119.jpg”; if(file_exists($add)) { echo “Yes file is...