This is an old revision of the document!
Create custom permalinks via the Settings tab in your GetSimple installation. Permalinks help define the URL structure of your site. If you put a value in the Custom Permalink Structure input box, your FancyURL setting may be overridden by the string you put in.
The default URL structure for “FancyURLs” ON is:
%parent%/%slug%/
The default URL structure for “FancyURLs” OFF is:
index.php?id=%slug%
The two tags to build your custom permalink are %parent%
and %slug%
Do not use a beginning slash
Replace subdirectory with your own virtual directory - this folder does not need to exist:
subdirectory/%parent%/%slug%/
Removes the index.php
from URL. This can be done without Fancy URL's turned on:
?id=%slug%
If you want to add an extension (.html
, .htm
or .php
) to your website's pages, you first need turn on Use Fancy URLs, then set the Custom Permalink Structure to (example for pages that will end in .html
):
%slug%.html
Next, you need to make a small change to your root level .htaccess
file. Change the Rewrite Rule to this:
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
NOTE: Change .html
to .php
(or .htm
) in both the Rewrite Rule above and the permalink structure, if you are using that extension instead.