Clean URLs with Apache .htaccess
Tiki supports search-engine friendly web addresses (SEFURLs or clean URLs), which are short versions of Tiki URLs, thanks to Apache Rewrite Rules. Some search engine crawlers do not process links with trailing parameters, so transforming the syntax makes the URL more search-engine friendly. By configuring your server properly, Tiki can understand clean URLs so that such short URLs will bring up a Tiki page, and by configuring Tiki properly, Tiki will produce clean URLS and build them into menus, static links, etc. This page explains both steps: how to make Tiki understand and produce clean URLs. See also: htaccess
Here are some examples of how clean URLs work for various types of Tiki pages:
Notice how any text after http://info.tiki.org/article192-Tiki will work, such as http://info.tiki.org/article192-Tiki-Passes Thus, the article title can be modified and the URL still works. Canonical URLs are there to inform search engines of the correct one.
Note that both the short and long URLs will still access your site.
Steps to Activate Clean URLs
Step 1: Activate Input Rewrite Rules on Your Server
Web Hosting Service Using Apache
If you have Tiki version 1.9.x or greater and are using a web hosting service that uses Apache, then input rewrite rules can be activated as follows:
Apache Configuration When Managing Own Server
For better instructions on how to do this see Digital Ocean.
If you manage your server and are using Apache, be sure to
Web Servers Other Than Apache
If you or your web hosting company is using a web server other than Apache (IIS for example), see your server manual or contact your web hosting service to find out how to activate rewrite rules on your server.
Suggested Input Rewrite Rules
Below are the rewrite rules for different versions of Tiki that pull into the .htaccess file automatically when the steps above for Apache web servers are followed.
Rewrite Rules for MultiTiki using Subdirectories as Symlinks[+]
Step 2: Configure Tiki to Produce Clean URLs
Now that your input rewrite rules have been set, you now need to configure Tiki to activate the output rewrite rules so that Tiki will generate SEFURLs internally in menus, static links and elsewhere.
Search engine friendly url Postfilter
List of Url Parameters that should go in the path
Display article title in the sefurl
Display blog title in the sefurl
Step 3: Configure Tiki to Show Clean URLs in Search Engine Results
When Clean URL's are enabled, it creates a second set of Clean URL's. The original URL's still exist, and by default, search engines will crawl and index them. Removing "duplicate content" is considered to be a good SEO practise and failing to do so generally results in a mild ranking penalty.
To enable this option, open the robots.txt file in your Tiki root directory and uncomment the SEF section by removing the #'s that start new lines. Uncommenting these lines without first completing steps 1 & 2 will prevent your website from being crawled or indexed.
Changing Rewrite Rules
You can customize the rewrite rules but it is important to note that that the input and output rewrite rules are connected, so that if you change one you may need to change the other.
The 'on the fly' filter can use 2 smarty tools: prefilter and a function. Here's an example: