This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
#################################################################################### | |
# Magento Auto Snapshot | |
# | |
# Shell script that makes a backup of Magento's database and media directories. | |
# Intended for use on development environments. Bring new developers up to speed | |
# quickly. | |
# Makes some assumptions regarding Capistrano style deploy path. | |
# | |
# You are responsible for your own security!!!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
# If the user is asking for the fullsite, set a cookie, remove the query, and stop. | |
RewriteCond %{QUERY_STRING} ^fullsite$ | |
RewriteRule ^/?(.*)$ http://domain.com/$1? [L,CO=fullsite:yes:.domain.com] | |
# If the user is asking for the mobilesite, set a cookie, remove the query, redirect and stop. | |
RewriteCond %{QUERY_STRING} ^mobilesite$ | |
RewriteRule ^/?(.*)$ http://m.domain.com/$1? [L,CO=fullsite:no:.domain.com] |