# HG changeset patch # User ethanzonca # Date 2010-10-10 17:10:04 # Node ID 71a43d0bf921f23e21f5cfa31960eadbf8615231 # Parent eab20c15a6b26d0c2a10dd102d7a5f4469d07714 # Parent 82803f4e0e6a78faef69a75b9956301d8855f417 Merge diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -5,5 +5,12 @@ style: regex # ignore all of cache except for the .keep file ^cache/[^.] +# ignore .htaccess because we only want .htaccess.example in the repo +^\.htaccess$ + +# ignore inc/config.inc because we only want inc/config.inc.example in +# the repo +^inc/config\.inc$ + # ignore common unwanted suffixes (~|\.orig|\.rej)$ diff --git a/.htaccess.example b/.htaccess.example new file mode 100644 --- /dev/null +++ b/.htaccess.example @@ -0,0 +1,16 @@ +# The following would be used to enable friendly pastebin-style +# URLs. To enable support for these URLs in slate_permutate, set +# $clean_urls = TRUE in inc/config.inc. + +RewriteEngine on + +# If you are serving this out of your home directory, there's a good chance you'll have to uncomment and edit one of the lines below: + +# For http://csx.calvin.edu/slate_permutate: +# RewriteBase /slate_permutate + +# For http://ohnopub.net/~ohnobinki/slate_permutate: +# RewriteBase /~ohnobinki/slate_permutate + +RewriteCond %{QUERY_STRING} ^(.*)?$ +RewriteRule ^([0-9]+)$ process.php?s=$1&%1 [L] diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -1,5 +1,15 @@ trackingcode = '