Welcome to Easy Computer Tutorial

Making computing, easy

.htaccess RewriteRule Examples

Here are some examples of rewriteRules that i found online, I am always looking for this, so I decided to save them here. Thanks to brontobytes for the examples. Example 1 Original URL:http://www.domain.com/product.php?id=15 Rewritten URL:http://www.domain.com/15.php Rule for .htaccess:RewriteEngine OnRewriteRule ^([^/]*)\.php$ /product.php?id=$1 [L] Example 2 Original URL:http://www.domain.com/product.php?id=15 Rewritten URL:http://www.domain.com/product15.php Rule for .htaccess:RewriteEngine OnRewriteRule ^product([^/]*)\.php$ /product.php?id=$1 [L]… read more »

There was a problem with Generator

Adobe Photoshop error: There was a problem with Generator. If the problem persists, please see:http://www.adobe.com/go/photoshop_generator_errors_en This error came up because I had installed Malwarebytes on our editor computer. Solution: Remove Malwarebytes, as hard as it sounds, that was the solution, I am thinking that the next version of Malwarebytes will have a fix for this… read more »

Restya Board Docker

After I had ran the docker-compose up -d command, I was presented with the restya board login. After setting up everything (users, boards, change default passwords) I was not getting notifications through email, I checked and the postfix service was not working correctly. Here is what I did to fix it, I went and removed… read more »

Nextcloud 18.0.1 with Docker-compose

Today I got my nextcloud server running with docker compose. Here is a run down of what I had to figure out: I had to chose how to install it, went with what is in the github repo: https://github.com/nextcloud/docker.git I chose the with-nginx-proxy with apache: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb/apache. The nginx proxy is a must if you are… read more »

Setup backup server for VestaCp

This are the instructions to setup your VestaCp server to backup to a FTP or SFTP server: Set up the backup server. /usr/local/vesta/bin/v-add-backup-host [TYPE] [HOST] [USERNAME] [PASSWORD] [PATH] [PORT] Path and port can be left blank. Example usage, /usr/local/vesta/bin/v-add-backup-host ftp host.name username password. Verify if added backup server exists. vi /usr/local/vesta/conf/ftp.backup.conf Make FTP default backup mode…. read more »

Configure Server to return the Cache-Control response

This setting tells the browser how long to keep a copy of the website and use it, instead of getting it from the server. This will reduce the website load time, and makes for a better user experience. Options that come with Cache-Control:no-cache: tells the browser to check if the resource has changed, if so… read more »

Sidebar