After adding add_rewrite_rule URL change automatically

I wrote the add_rewrite_rule to get some parameters in query string. the following rules are added in functions file. add_rewrite_rule( ‘^en(.*)/(.*)/(.*)/?$’, ‘index.php?post_type=client&name=$matches[1]&parent=$matches[2]&sub1=$matches[3]’, ‘top’ ); add_rewrite_rule( ‘^(.*)/(.*)/(.*)/?$’, ‘index.php?post_type=client&name=$matches[1]&parent=$matches[2]&sub1=$matches[3]’, ‘top’ ); add_rewrite_rule( ‘^en(.*)/(.*)/?$’, ‘index.php?post_type=client&name=$matches[1]&parent=$matches[2]’, ‘top’ ); add_rewrite_rule( ‘^(.*)/(.*)/?$’, ‘index.php?post_type=client&name=$matches[1]&parent=$matches[2]’, ‘top’ ); but other post’s slug added between automatically. For example: this url: http://example.com/vandertol/ changes to this url:…

How can I deploy a Composer created site from localhost to live server without SSH, Git, Drush or any other CLI tool?

I have a Drupal 8 site installed via composer on Localhost (Windows 10 64bit), using latest Xampp php version. My web hosting provider is siteground. I used the Drupal “recommended” option to install the site via composer: composer create-project drupal/recommended-project my_site_name_dir –no-interaction This put my site into a “web” subdirectory. URL offline is this: http://localhost/d8composer/web/…

how can export data in excel file custom plugin

below is my code I need to export data with excel file <form action=”<?php echo $_SERVER[“PHP_SELF”]; ?>?page=client_plugin” method=”post” name=”export_excel”> <div class=”control-group”> <div class=”controls”> <button type=”submit” id=”export” name=”export” class=”btn btn-primary button-loading” data-loading-text=”Loading…”>Export MySQL Data to CSV/Excel File</button> </div> </div> </form> <table class=”dash-table” width=”100%” cellspacing=”0″ cellpadding=”10px” border=”0″> <tr> <td>Client Name</td> <td>Email</td> <td>Health Condition</td> <td>Changes</td> <td>Image</td> </tr> <?php…