SVG files and wordpress

You’re going to have to edit your functions.php file and add a few lines. This article has a better explanation. I suggest you try here if you haven’t already. https://css-tricks.com/snippets/wordpress/allow-svg-through-wordpress-media-uploader/

Rewrite /keyword1+keyword2.html to search page | .htaccess

Don’t touch the .htaccess file, there’s this neat tool add_rewrite_rule() which you should hook into init: add_action(‘init’, function() { add_rewrite_rule( ‘search+([^/]+).html$’, ‘index.php?my_custom_search=1&s=$matches[1]&submit=Search’, ‘top’ ); }); Right after that you should flush the rewrite rules once ( by saving the permalink settings in Settings > Permalinks or with flush_rewrite_rules() BUT call that function only once and … Read more

I want to write something that restarts the httpd service when my apache server dies

You need something like this: #!/bin/bash #test-httpd.sh client=”yourname” mailboxes=”[email protected]” # write to that file monitorfile=”/var/www/html/monitor.php” #empty monitor.php > $monitorfile APACHE=`/bin/pidof httpd` echo $APACHE if [ “$APACHE” == “” ] then echo APACHE_FAILURE | mail -s “$client””: CRITICAL : APACHE FAILURE !!!!” $mailboxes #trying to restart it /etc/init.d/httpd stop /etc/init.d/httpd start echo -e “apache:FAIL\n” >> $monitorfile … Read more