Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pikami committed Jun 20, 2016
1 parent 7131986 commit 045af4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Options +FollowSymlinks
RewriteEngine on

#Change the "/paste/" to the root of your palm paste
RewriteBase "/paste/"

RewriteRule ^u/([A-Za-z0-9-]+)/?$ index.php?user=$1
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?page=$1
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ So we'll just assume you already have them all running well.
2. Create a user and database for palm-paste
3. Take the 'palm-paste.sql' and import it to your database.
4. Edit configuration settings in config/config.php
5. Done!
5. Change the "RewriteBase" setting in ".htaccess" file to the root of your palm-paste installation
6. Done!

* To ensure that pastes with an expiration set get cleaned up, define the cron key in the config and set up a cronjob, for example:
* `*/5 * * * * curl --silent http://your-site.com/palm-paste/cronjob.php?key=[key]`
Expand Down

0 comments on commit 045af4a

Please sign in to comment.