Show Menu
Cheatography

Modx Revolution Cheat Sheet (DRAFT) by

Administering Modx Revolution

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Database backup

$ mysqldump --opt -u [uname] -p[pass] [dbname] > [backupfile.sql]
[uname] Your database username
[pass] The password for your database (note there is no space between -p and the password)
[dbname] The name of your database
[backupfile.sql] The filename for your database backup
[--opt] The mysqldump option

Backup File Structure

tar -czf ~/backup/meadowsah.tar.gz home/
 

Update new version

Download latest version of ModX revolution
Extract it
Copy files over the top of previous instal­lation
Access /setup to run through the upgrade process.
 

Root .htaccess

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www.)?host.com$
RewriteRule ^(/)?$ home [L]

change host to the domain name.

.htaccess for home folder

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www.)?subdomain.domain.net$
RewriteRule ^(.*)$ http://www.domain.com/home/$1 [R=301,L]

RewriteBase /

change domain and subdomain to the relevant domain names to ensure that the correct URL is used to load the pages