Using an Alternate URL
Alternate URLs allow you to have Chyrp installed in its own directory, while only having the index.php and .htaccess file at your sites directory. It keeps the directory structure of your website a little cleaner – here’s what it will look like:
chyrp/
index.php
.htaccess
First you must install Chyrp to /chyrp. After it’s installed and ready, set your “Alternate URL” to whatever you like. If your “Chyrp URL” is http://example.com/chyrp
, your best bet is to set it to http://example.com
. It doesn’t really matter though, you can set it to whatever you like.
Now that that’s set up, create a index.php
in your alternate location, and put this in it:
<?php require "path/to/chyrp/index.php"; ?>
Now, edit your .htaccess
file’s RewriteBase
line to point to the directory that your index.php
file is in.
If Chyrp is installed to /chyrp/
and you’re moving to /
, change it to that:
RewriteBase /