Redirecting a Web Folder Directory to another Directory in htaccess
…the non-www as preference. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.olddomain\.com$ RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^olddomain\.com$ RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] The above here will redirect 301 all urls from one…
Read MoreChange and Update WordPress URLS in Database When Site is Moved to new Host
…wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldurl’, ‘http://www.newurl’);…
Read MoreInstalling Homebrew on macOS Ventura or Monterey, Package Manager for Linux Apps
…a package manager, unfortunately, macOS Ventura doesn’t come with one, but fortunately, some good folks care, they come in the form of Homebrew. The install of Homebrew also works on…
Read MoreRedirect all pages to non-www and HTTPS in WordPress
…off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # END Redirects If you still want the www way instead https://www.example.com # BEGIN Redirects RewriteEngine On # 301 redirect to www RewriteCond %{HTTP_HOST} !^www\….
Read MoreSet up malware scanner LMD Maldet and ClamAV on a RunCloud instance
…which are not malware but will show in a scan, download and use files below to test in a directory that you scan: wget http://www.eicar.org/download/eicar.com wget http://www.eicar.org/download/eicar.com.txt wget http://www.eicar.org/download/eicar_com.zip wget…
Read MoreSet up malware scanner LMD Maldet and ClamAV on a CloudPanel instance
…directory that you scan: wget http://www.eicar.org/download/eicar.com wget http://www.eicar.org/download/eicar.com.txt wget http://www.eicar.org/download/eicar_com.zip wget http://www.eicar.org/download/eicarcom2.zip Using LMD as a monitoring app LMD also allows for it to be a monitoring daemon application that…
Read MoreInstalling node.js on macOS Ventura and earlier macOS versions
…package manager called npm (Node Package Manager) also installed, which can manage other packages that work with node.js, one of the main ones being gulp.js for a web development workflow….
Read MoreSetting up a WordPress VVV2 Vagrant Workflow
…very active – if you prefer you can also use the master branch. So install develop git clone -b develop git://github.com/Varying-Vagrant-Vagrants/VVV.git localdev or master… git clone -b master git://github.com/Varying-Vagrant-Vagrants/VVV.git localdev…
Read MoreAdd System Font Stack to Customiser Preset in Beaver Builder Theme & Plugin
…and provide a relatively comfortable and consistent display across different mediums. Beaver Theme 1.6.2 has added some additional filters that allow extra fonts to be available for selection in the…
Read MoreInstalling & Configuring Apache on macOS using Homebrew and use Sites folder
…AllowOverride All Find: User _www Group _www Change: User shortusername Group staff Find: #ServerName www.example.com:8080 Change: ServerName localhost Find and uncomment: LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so Now the webroot is /Users/shortusername/Sites/ just…
Read More