This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
how_to:website_settings [2013/03/27 11:57] Timbow |
how_to:website_settings [2013/03/27 12:30] Timbow |
||
---|---|---|---|
Line 9: | Line 9: | ||
* **Website Base URL** - This is the URL of where your GetSimple site is installed to | * **Website Base URL** - This is the URL of where your GetSimple site is installed to | ||
* **Custom Permalink Structure** - Allows you to customize your URL structure. [[:permalinks|More Information]] | * **Custom Permalink Structure** - Allows you to customize your URL structure. [[:permalinks|More Information]] | ||
- | * **Fancy URLs** - This will allow you to have an SEO-friendly URL structure. Customizable with [[:permalinks|Permalinks]] & needs [[installation:modules|mod_rewrite]] installed to work properly. | + | ==== Fancy (Pretty/SEO) URLs ==== |
+ | |||
+ | GetSimple allows you to create better looking, and more SEO friendly URLs. In order for this feature to work, your server needs to have the **mod_rewrite** module installed. | ||
+ | |||
+ | You also have the ability to edit the structure of the URLs by setting a [[permalinks|Custom Permalink Structure]]. Certain custom structures need the **mod_rewrite** module, but not all. | ||
+ | |||
+ | ==== Custom Permalink Structure ==== | ||
+ | |||
+ | 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 [[pretty_urls|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%'' | ||
+ | |||
+ | === Syntax === | ||
+ | |||
+ | |||
+ | The two tags to build your custom permalink are ''%parent%'' and ''%slug%'' | ||
+ | Do not use a beginning slash | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | Replace subdirectory with your own virtual directory - //this folder does not need to exist//: | ||
+ | <code>subdirectory/%parent%/%slug%/</code> | ||
+ | |||
+ | Removes the ''index.php'' from URL. This can be done without Fancy URL's turned on: | ||
+ | <code>?id=%slug%</code> | ||
+ | |||
+ | === Adding .html, .htm or .php extension to URLs === | ||
+ | |||
+ | 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''): | ||
+ | <code>%slug%.html</code> | ||
+ | |||
+ | Next, you need to make a small change to your root level ''.htaccess'' file. Change the Rewrite Rule to this: | ||
+ | <code>RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]</code> | ||
+ | |||
+ | NOTE: Change ''.html'' to ''.php'' (or ''.htm'') in both the Rewrite Rule above and the permalink structure, if you are using that extension instead. | ||
=====User Profile===== | =====User Profile===== |