Loading...
 
Documentation

Documentation


Official docs page Rewrite Rules damaged

posts: 56 China

I need some information about the Rewrite Rules for SEF in Tikiwiki, so I went to visit:

http://doc.tikiwiki.org/tiki-index.php?page=Rewrite+Rules

But this page was damaged. The Rewrite Rules for Tikiwiki in Subdir part can't show up. The code box show me Not Found error.

Hope someone will fix that page soon.

Thanks.

posts: 1817 Catalan Countries

Hi baijianpeng :

Thanks for reporting. I've send a request to the people with access to the server to upload the file again.
I copied it also here to this post for you.

Hope this helps, and please, consider contributing to the Documentation.

Cheers

Copy to clipboard
# These are suggested Rewrite Rules for use with TikiWiki. # They enhance security and permit short URLS. # # To use # 1- rename _htaccess to .htaccess # or # 2- add the content of this file to your httpd.conf # # Please find more info here # http://doc.tikiwiki.org/Rewrite+Rules # order deny,allow deny from all RewriteEngine On # rewrite for multitiki sites, when configured as symlinks, not as apache aliases RewriteCond %{SCRIPT_FILENAME}/ -d RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L] # direct one-word access for tiki in /subdir1/ RewriteRule ^articles$ /subdir1/tiki-view_articles.php [L] RewriteRule ^blogs$ /subdir1/tiki-list_blogs.php [L] RewriteRule ^calendar$ /subdir1/tiki-calendar.php [L] RewriteRule ^categories$ /subdir1/tiki-browse_categories.php [L] RewriteRule ^charts$ /subdir1/tiki-list_charts.php [L] RewriteRule ^chat$ /subdir1/tiki-chat.php [L] RewriteRule ^contact$ /subdir1/tiki-contact.php [L] RewriteRule ^directories$ /subdir1/tiki-directory_browse.php [L] RewriteRule ^eph$ /subdir1/tiki-eph.php [L] RewriteRule ^faqs$ /subdir1/tiki-list_faqs.php [L] RewriteRule ^files$ /subdir1/tiki-file_galleries.php [L] RewriteRule ^forums$ /subdir1/tiki-forums.php [L] RewriteRule ^images$ /subdir1/tiki-galleries.php [L] RewriteRule ^irc$ /subdir1/tiki-irc_logs.php [L] RewriteRule ^galleries$ /subdir1/tiki-galleries.php [L] RewriteRule ^games$ /subdir1/tiki-list_games.php [L] RewriteRule ^login$ /subdir1/tiki-login.php [L] RewriteRule ^mobile$ /subdir1/tiki-mobile.php [L] RewriteRule ^my$ /subdir1/tiki-my_tiki.php [L] RewriteRule ^newsletters$ /subdir1/tiki-newsletters.php [L] RewriteRule ^quizzes$ /subdir1/tiki-list_quizzes.php [L] RewriteRule ^sheets$ /subdir1/tiki-sheets.php [L] RewriteRule ^stats$ /subdir1/tiki-stats.php [L] RewriteRule ^surveys$ /subdir1/tiki-list_surveys.php [L] RewriteRule ^trackers$ /subdir1/tiki-list_trackers.php [L] RewriteRule ^wml$ /subdir1/tiki-mobile.php [L] RewriteRule ^workspaces$ /subdir1/tiki-workspaces_admin.php [L] # direct one-word access for tiki in /subdir2/ RewriteRule ^articles$ /subdir2/tiki-view_articles.php [L] RewriteRule ^blogs$ /subdir2/tiki-list_blogs.php [L] RewriteRule ^calendar$ /subdir2/tiki-calendar.php [L] RewriteRule ^categories$ /subdir2/tiki-browse_categories.php [L] RewriteRule ^charts$ /subdir2/tiki-list_charts.php [L] RewriteRule ^chat$ /subdir2/tiki-chat.php [L] RewriteRule ^contact$ /subdir2/tiki-contact.php [L] RewriteRule ^directories$ /subdir2/tiki-directory_browse.php [L] RewriteRule ^eph$ /subdir2/tiki-eph.php [L] RewriteRule ^faqs$ /subdir2/tiki-list_faqs.php [L] RewriteRule ^files$ /subdir2/tiki-file_galleries.php [L] RewriteRule ^forums$ /subdir2/tiki-forums.php [L] RewriteRule ^images$ /subdir2/tiki-galleries.php [L] RewriteRule ^irc$ /subdir2/tiki-irc_logs.php [L] RewriteRule ^galleries$ /subdir2/tiki-galleries.php [L] RewriteRule ^games$ /subdir2/tiki-list_games.php [L] RewriteRule ^login$ /subdir2/tiki-login.php [L] RewriteRule ^mobile$ /subdir2/tiki-mobile.php [L] RewriteRule ^my$ /subdir2/tiki-my_tiki.php [L] RewriteRule ^newsletters$ /subdir2/tiki-newsletters.php [L] RewriteRule ^quizzes$ /subdir2/tiki-list_quizzes.php [L] RewriteRule ^sheets$ /subdir2/tiki-sheets.php [L] RewriteRule ^stats$ /subdir2/tiki-stats.php [L] RewriteRule ^surveys$ /subdir2/tiki-list_surveys.php [L] RewriteRule ^trackers$ /subdir2/tiki-list_trackers.php [L] RewriteRule ^wml$ /subdir2/tiki-mobile.php [L] RewriteRule ^workspaces$ /subdir2/tiki-workspaces_admin.php [L] # access any object by its numeric identifier for tiki in /subdir1/ RewriteRule ^article([0-9]+) /subdir1/tiki-read_article.php?articleId=$1 [QSA,L] RewriteRule ^art([0-9]+) /subdir1/tiki-read_article.php?articleId=$1 [QSA,L] RewriteRule ^blog([0-9]+) /subdir1/tiki-view_blog.php?blogId=$1 [QSA,L] RewriteRule ^blogpost([0-9]+) /subdir1/tiki-view_blog_post.php?postId=$1 [QSA,L] RewriteRule ^cat([0-9]+) /subdir1/tiki-browse_categories.php?parentId=$1 [QSA,L] RewriteRule ^categ([0-9]+) /subdir1/tiki-browse_categories.php?parentId=$1 [QSA,L] RewriteRule ^chart([0-9]+) /subdir1/tiki-view_chart.php?chartId=$1 [QSA,L] RewriteRule ^directory([0-9]+) /subdir1/tiki-directory_browse.php?parent=$1 [QSA,L] RewriteRule ^dl([0-9]+) /subdir1/tiki-download_file.php?fileId=$1 [QSA,L] RewriteRule ^eph([0-9]+) /subdir1/tiki-directory_browse.php?parent=$1 [QSA,L] RewriteRule ^faq([0-9]+) /subdir1/tiki-view_faq.php?faqId=$1 [QSA,L] RewriteRule ^file([0-9]+) /subdir1/tiki-list_file_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^forum([0-9]+) /subdir1/tiki-view_forum.php?forumId=$1 [QSA,L] RewriteRule ^img([0-9]+) /subdir1/show_image.php?id=$1 [QSA,L] RewriteRule ^image([0-9]+) /subdir1/tiki-browse_image.php?imageId=$1 [QSA,L] RewriteRule ^int([0-9]+) /subdir1/tiki-integrator.php?repID=$1 [QSA,L] RewriteRule ^irc([0-9]+) /subdir1/tiki-irc_logs.php?focus=$1 [QSA,L] RewriteRule ^gal([0-9]+) /subdir1/tiki-browse_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^gallery([0-9]+) /subdir1/tiki-browse_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^newsletter([0-9]+) /subdir1/tiki-newsletters.php?nlId=$1 [QSA,L] RewriteRule ^page([0-9]+) /subdir1/tiki-index.php?page_ref_id=$1 [QSA,L] RewriteRule ^page-([A-Za-z0-9]+) /subdir1/tiki-index.php?page=$1 [QSA,L] RewriteRule ^poll([0-9]+) /subdir1/tiki-poll_results.php?pollId=$1 [QSA,L] RewriteRule ^quiz([0-9]+) /subdir1/tiki-take_quiz.php?quizId=$1 [QSA,L] RewriteRule ^sheet([0-9]+) /subdir1/tiki-view_sheets.php?sheetId=$1 [QSA,L] RewriteRule ^survey([0-9]+) /subdir1/tiki-take_survey.php?surveyId=$1 [QSA,L] RewriteRule ^tracker([0-9]+) /subdir1/tiki-view_tracker.php?trackerId=$1 [QSA,L] RewriteRule ^vote([0-9]+) /subdir1/tiki-poll_form.php?pollId=$1 [QSA,L] RewriteRule ^wiki-([A-Za-z0-9]+) /subdir1/tiki-index.php?page=$1 [QSA,L] RewriteRule ^ws([0-9]+) /subdir1/tiki-workspaces_desktop.php?workspaceId=$1 [QSA,L] # access any object by its numeric identifier for tiki in /subdir2/ RewriteRule ^article([0-9]+) /subdir2/tiki-read_article.php?articleId=$1 [QSA,L] RewriteRule ^art([0-9]+) /subdir2/tiki-read_article.php?articleId=$1 [QSA,L] RewriteRule ^blog([0-9]+) /subdir2/tiki-view_blog.php?blogId=$1 [QSA,L] RewriteRule ^blogpost([0-9]+) /subdir2/tiki-view_blog_post.php?postId=$1 [QSA,L] RewriteRule ^chart([0-9]+) /subdir2/tiki-view_chart.php?chartId=$1 [QSA,L] RewriteRule ^cat([0-9]+) /subdir2/tiki-browse_categories.php?parentId=$1 [QSA,L] RewriteRule ^categ([0-9]+) /subdir2/tiki-browse_categories.php?parentId=$1 [QSA,L] RewriteRule ^directory([0-9]+) /subdir2/tiki-directory_browse.php?parent=$1 [QSA,L] RewriteRule ^dl([0-9]+) /subdir2/tiki-download_file.php?fileId=$1 [QSA,L] RewriteRule ^eph([0-9]+) /subdir2/tiki-directory_browse.php?parent=$1 [QSA,L] RewriteRule ^faq([0-9]+) /subdir2/tiki-view_faq.php?faqId=$1 [QSA,L] RewriteRule ^file([0-9]+) /subdir2/tiki-list_file_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^forum([0-9]+) /subdir2/tiki-view_forum.php?forumId=$1 [QSA,L] RewriteRule ^img([0-9]+) /subdir2/show_image.php?id=$1 [QSA,L] RewriteRule ^image([0-9]+) /subdir2/tiki-browse_image.php?imageId=$1 [QSA,L] RewriteRule ^int([0-9]+) /subdir2/tiki-integrator.php?repID=$1 [QSA,L] RewriteRule ^irc([0-9]+) /subdir2/tiki-irc_logs.php?focus=$1 [QSA,L] RewriteRule ^gal([0-9]+) /subdir2/tiki-browse_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^gallery([0-9]+) /subdir2/tiki-browse_gallery.php?galleryId=$1 [QSA,L] RewriteRule ^newsletter([0-9]+) /subdir2/tiki-newsletters.php?nlId=$1 [QSA,L] RewriteRule ^page([0-9]+) /subdir2/tiki-index.php?page_ref_id=$1 [QSA,L] RewriteRule ^page-([A-Za-z0-9]+) /subdir2/tiki-index.php?page=$1 [QSA,L] RewriteRule ^poll([0-9]+) /subdir2/tiki-poll_results.php?pollId=$1 [QSA,L] RewriteRule ^quiz([0-9]+) /subdir2/tiki-take_quiz.php?quizId=$1 [QSA,L] RewriteRule ^sheet([0-9]+) /subdir2/tiki-view_sheets.php?sheetId=$1 [QSA,L] RewriteRule ^survey([0-9]+) /subdir2/tiki-take_survey.php?surveyId=$1 [QSA,L] RewriteRule ^tracker([0-9]+) /subdir2/tiki-view_tracker.php?trackerId=$1 [QSA,L] RewriteRule ^vote([0-9]+) /subdir2/tiki-poll_form.php?pollId=$1 [QSA,L] RewriteRule ^wiki-([A-Za-z0-9]+) /subdir2/tiki-index.php?page=$1 [QSA,L] RewriteRule ^ws([0-9]+) /subdir2/tiki-workspaces_desktop.php?workspaceId=$1 [QSA,L] # todo add support for all characters allowed in a Wiki name for tiki in subdir1 # make sure this is the last rule! RewriteRule ^show:(~?)([-_\+A-Za-z0-9]+)$ /subdir1/tiki-slideshow.php?page=$1$2 [QSA,L] RewriteRule ^(~?)([-_\+A-Za-z0-9]+)$ /subdir1/tiki-index.php?page=$1$2 [QSA,L] # todo add support for all characters allowed in a Wiki name for tiki in subdir2 # make sure this is the last rule! RewriteRule ^show:(~?)([-_\+A-Za-z0-9]+)$ /subdir2/tiki-slideshow.php?page=$1$2 [QSA,L] RewriteRule ^(~?)([-_\+A-Za-z0-9]+)$ /subdir2/tiki-index.php?page=$1$2 [QSA,L] #for multi-byte char support use for tiki in subdir1 RewriteRule ^([^a-z]+)([^\/]+)([^tki-]+)(.*[^.js]+)(~?)(.*)$ /subdir1/tiki-index.php?page=$1$2$3$4$5$6$7$8$9 [QSA,L] #for multi-byte char support use for tiki in subdir2 RewriteRule ^([^a-z]+)([^\/]+)([^tki-]+)(.*[^.js]+)(~?)(.*)$ /subdir2/tiki-index.php?page=$1$2$3$4$5$6$7$8$9 [QSA,L]

posts: 56 China

Thank you to xavi.

I will try this code on my Tikiwiki.

In fact, I am not familiar enough with Tikiwiki, just a newbie here. And after 2 months of testing, I realized that the Tikiwiki software has some important facts need to be improved.

I think I have some good ideas, but would the core team listen to me?

Maybe later when I learn a lot about how to use Tikiwiki, I can write or translate some docs here.

Thanks.


posts: 56 China

I have to bother you again, xavi.

Five minutes ago, I applied your code to replace my current .htaccess file. But then when I tried to visit my wiki page, there is only a blank page with following error message:

Image
Copy to clipboard
Forbidden You don't have permission to access /wiki on this server.


What's wrong?

My Tikiwiki was installed in a subdirectory of http://www.joomlagate.com/wiki/.

Could you or someone else help me?

Thanks.

posts: 4656 Japan

If I'm not mistaken, those rewrite rules for TikiWiki in a subdirectory are meant for the case when you want TikiWiki to appear to be in your web root directory, when it is actually in a subdirectory, so requests for a file in your domain web root are redirected to the TikiWiki subdirectory. Is this the case for your joomlagate installation?

I run TikiWiki installations in subdirectories routinely, like www.mydomain.com/tikiwiki/, and they operate normally. That is, a url like www.mydomain.com/tikiwiki/HomePage works with no problem when www.mydomain.com/tikiwiki/_htaccess is renamed www.mydomain.com/tikiwiki/.htaccess.

-- Gary

posts: 1817 Catalan Countries

Hi baijianpeng and Gary:

Sorry for the confusion, maybe I didn't write clearly at the documentation when to use this modified version of .htaccess

This is meant (and necessary for rewrite rules to work on all your sites) when you use several tikis in the same host based on a MultiTiki installation, and each individual Tiki is accessed as subdirectories of the same domain.
Examples (real cases):
http://moviments.net/cursos
http://moviments.net/euromovements
http://moviments.net/acs
...

All of them, in our case, use the same file tree, the same single installation of files on the server, with one mysql db for each tiki (i.e., "multitiki on subdirs").

On the server, each of those subdirs (/home/htdocs/cursos/, /home/htdocs/euromovements/, ...) are just symlinks to the same directory where tiki is installed (/home/httpd/tiki19/ for instance), and that tiki installation is the one which has that modified version of .htaccess

Sorry for the previous confusion. I hope it's clearer nowadays.
Ask again if still in doubt.

Cheers

posts: 1817 Catalan Countries

By the way, I'm very glad that you are using Tiki to handle translations of joomla documentation. The guys who designed and coded the Cross Lingual Wiki Engine (http://wiki-translation.com/CLWE) did a very good job, and they are still improving it.
So, good choice! and very good Tiki feature! smile


posts: 56 China

biggrin I am always proud of my choices. When I need a Online Collaborative Translation platform, I finally choose Tikiwiki.

Following your link, I found that the http://wiki-translation.com/CLWE website itself is also built by Tikiwiki. So I think the multilingual feature of Tikiwiki in future is guaranteed. lol

Why I tried to look for a new .htaccess file? Because when I save a page in Tikiwiki, I met following error message:

Image
Copy to clipboard
... &saved_msg=y was not found on this server


See my report at: http://tikiwiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=31327&comments_per_page=1&thread_style=commentStyle_plain.

This error is very frustrating. So I think maybe I need a .htaccess for Tikiwiki in subdirectory.

But according to Gary, even the Tikiwiki was installed in a subdirectory, I can still use the default .htaccess file.

OK, I will try more to test with this. Hope it can work.

Thanks to your all for your kindly help.

BTW, if I had some suggestions for this official website, where should I submit them? I did not find an appropriate forum here.


posts: 56 China

Thanks xavi !

I live in China, in most time, the sf.net was blocked by the Great-Fire-Wall. sad

Maybe here should have a forum named Issues about Tikiwiki.org Website.

I will try that mailing list with some proxy.

posts: 1817 Catalan Countries

Hi again:

You can subscribe to the list through email, no need to do it through web site. As far as I have read at other lists information based on "mailman":

Send an e-mail message to

Copy to clipboard
tikiwiki-users-subscribe@lists.sourceforge.net


No subject nor body seem needed to that message, just that address.

You should receive a confirmation message back telling you if your request to subscribe to the list has succeeded or to confirm the subscription request.

See this page with much more detailed informagtion about how to use the email interface of mailman lists (subscribe, unsubscribe, set options, ...), such as the ones used by Tikiwiki community!
http://www.modwest.com/help/kb13-283.html

Finally, for completeness, you can subscribe through a web interface from here:
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users


If it works, you can add that somewhere at the documentation! :-)


posts: 56 China

Thank you xavi, I had send a blank email to that address with subscribe as the subject.

Hope it will work.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting