Using blow code you can remove all .html Just add this code in your root location .htaccess

————————————-
RewriteEngine on

RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]

—————————–

old URL yourwebsite.com/about-us.html
New URL yourwebsite.com/about-us


Hello Namaste 🙏,

In one of our recent projects, we have a requirement to display months organized by year on the right side of the page. When a user clicks on a specific month, we need to use AJAX to fetch and display a list of blog posts published during that month. Additionally, if there are no posts for a particular month, we should disable that month.

To provide you with a clearer understanding, please refer to the screenshot below

 

To achieve this, we utilized MySQL queries, foreach loops, and arrays. Here’s the code snippet:

The resulting array will provide you with the necessary data. You can utilize it as per your requirements.


Hey Namaste,

In this article, We will learn some of the SSH commands for server operations like zip, unzip, delete and move a file from one server to another.

SSH is the best solutions to do a server-side operation in speed. So Let’s start.

SSH in simple language

Stands for “Secure Shell or Secure Socket Shell.” SSH is a method of securely communicating with another computer. The “secure” part of the name means that all data sent via an SSH connection is encrypted. This means if a third party tries to intercept the information being transferred, it would appear scrambled and unreadable. The “shell” part of the name means SSH is based on a Unix shell, which is a program that interprets commands entered by a user.

Source: www.techterms.com

 

Install PuTTY

PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.
Using PuTTY We can do SSH operation with a remote server

Download from: www.putty.org

SSH Commands

1. ZIP(Compress) Operations
1.1 Compress(zip) all files in the current directory
e.g zip filename.zip *

Note: In this, subfolders and files will note includes and you can add file name without extension.

1.2 Compress(zip)an entire directory including all sub-directories
e.g zip -r filename *

2. UNZIP Operations
Unzip specific file
e.g unzip filename.zip

3. Delete folder or file
e.g rm -rf folder-name/

4. Move files from one server to another
For this, we will use SCP command and need both Servers IP Address, Username, Password and path to file or folder

Move file from the old server (A) to a new server (B) while logged into A

e.g scp path/to/file UsernameofB@IPofB:path/to/destination

Note:
public_html/filename.zip = Server A
yuvrajkhavad@192.111.1.1:public_html/newdata = Server B

Contributing
Pull requests are welcome. Please add your ssh command submit a pull here
Please make sure to update tests as appropriate.

Have other commands in mind then please mention on the comment I will add it on a post.

Note: This post originally posted at https://zindex.co.in/play-with-ssh-secure-shell/

 


Today you left us, (August 05, 2017 ) but there is not a moment when you are not within us. Remembering you Brother

સાદો અતિ સુલક્ષણો
કાઠી કૂળરી લાજ
ખવડ જોડ્ય ખલકમાં
જડશે નહીં જયરાજ.

ઉપડ્યું હતું હજી અબઘડી
જબ્બર તારુ જહાજ
ઉતાવળે કેમ ઉતરી ગયો
જાણેય ન કરી જયરાજ

કાંઠો છાંડી કાઠી તણું
હજુતો વેતું થયુંતું વાણ
જલ્દી હશે શું જયરાજને
કે પરલોક કિધાં પરિયાણ


Recently one of my client’s projects, I have to update WordPress and plugins. At admin panel, there is the update available message but there is no option to update WordPress and there is a no add a new plugin button in the plugin menu. Also, there is no any message plugin update available but there updates. Check attachment for more details.

WordPress 4.9.8 is available! Please do notify the site administrator.

Error message

So checked wp-config.php may be old developer disable updates, but in this files, there is no any code for disabling DISALLOW_FILE_MODS so added below code and working perfectly.

define(‘DISALLOW_FILE_MODS’,false);

 

Note: Also check may be there set”true”, if yes then write false.

 

Let’s know need any help. Happy to help.