Loading...
 
Skip to main content

History: Profile_Repository_Rewrite_Configuration

Source of version: 14

Copy to clipboard
            ! Profile Repository Rewrite Configuration

If you have installed the [https://profiles.tiki.org/Profile_Repository_Profile_3x|Profile_Repository_Profile_3x] or [https://profiles.tiki.org/Profile_Repository_Profile|Profile_Repository_Profile], you can now access your repository by using this address:
[tiki-browse_categories.php?parentId=$profileobject:profile_category$&deep=on&type=&plain&maxRecords=1000000]

In order to create a shorter path and make using the profile repository easier for you and others, a shortcut URL can be created. Simply add this line to your .htaccess file below the "RewriteEngine on" line.

{CODE(caption=".htaccess configuration to add" wrap="1" ishtml="1")}
RewriteRule ^profiles$ tiki-browse_categories.php?parentId=$profileobject:profile_category$&deep=on&type=plain&maxRecords=1000000
{CODE}

The complete .htaccess file will look like this:

{CODE(caption="Complete .htaccess" wrap="1" ishtml="1")}
# These are suggested Rewrite Rules for use with Tiki.
# 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.tiki.org/Rewrite+Rules
#
# This prevents reading of files with certain extensions.
<FilesMatch "\.(bak|inc|lib|sh|tpl|sql)$">
	order deny,allow
	deny from all
</FilesMatch>

RewriteEngine On

RewriteRule ^profiles$             tiki-browse_categories.php?parentId=$profileobject:profile_category$&deep=on&type=plain                        [L]

# direct one-word access
RewriteRule ^calendar$             tiki-calendar.php                        [L]
RewriteRule ^articles$             tiki-view_articles.php                   [L]
RewriteRule ^blogs$                tiki-list_blogs.php                      [L]
RewriteRule ^categories$           tiki-browse_categories.php               [L]
RewriteRule ^charts$               tiki-list_charts.php                     [L]
RewriteRule ^chat$                 tiki-chat.php                            [L]
RewriteRule ^contact$              tiki-contact.php                         [L]
RewriteRule ^directories$          tiki-directory_browse.php                [L]
RewriteRule ^faqs$                 tiki-list_faqs.php                       [L]
RewriteRule ^files$                tiki-file_galleries.php                  [L]
RewriteRule ^forums$               tiki-forums.php                          [L]
RewriteRule ^images$               tiki-galleries.php                       [L]
RewriteRule ^galleries$            tiki-galleries.php                       [L]
RewriteRule ^games$                tiki-list_games.php                      [L]
RewriteRule ^login$                tiki-login.php                           [L]
RewriteRule ^my$                   tiki-my_tiki.php                         [L]
RewriteRule ^newsletters$          tiki-newsletters.php                     [L]
RewriteRule ^quizzes$              tiki-list_quizzes.php                    [L]
RewriteRule ^stats$                tiki-stats.php                           [L]
RewriteRule ^surveys$              tiki-list_surveys.php                    [L]
RewriteRule ^trackers$             tiki-list_trackers.php                   [L]
RewriteRule ^irc$                  tiki-irc_logs.php                        [L]
RewriteRule ^mobile$               tiki-mobile.php                          [L]
RewriteRule ^wml$                  tiki-mobile.php                          [L]
RewriteRule ^sheets$               tiki-sheets.php                          [L]
RewriteRule ^workspaces$           tiki-workspaces_admin.php                [L]

# access any object by its numeric identifier
RewriteRule ^article([0-9]+)       tiki-read_article.php?articleId=$1       [QSA,L]
RewriteRule ^art([0-9]+)           tiki-read_article.php?articleId=$1       [QSA,L]
RewriteRule ^cat([0-9]+)           tiki-browse_categories.php?parentId=$1   [QSA,L]
RewriteRule ^blog([0-9]+)          tiki-view_blog.php?blogId=$1             [QSA,L]
RewriteRule ^blogpost([0-9]+)      tiki-view_blog_post.php?postId=$1        [QSA,L]
RewriteRule ^chart([0-9]+)         tiki-view_chart.php?chartId=$1           [QSA,L]
RewriteRule ^directory([0-9]+)     tiki-directory_browse.php?parent=$1      [QSA,L]
RewriteRule ^faq([0-9]+)           tiki-view_faq.php?faqId=$1               [QSA,L]
RewriteRule ^file([0-9]+)          tiki-list_file_gallery.php?galleryId=$1  [QSA,L]
RewriteRule ^dl([0-9]+)            tiki-download_file.php?fileId=$1         [QSA,L]
RewriteRule ^forum([0-9]+)         tiki-view_forum.php?forumId=$1           [QSA,L]
RewriteRule ^image([0-9]+)         show_image.php?id=$1                     [QSA,L]
RewriteRule ^gallery([0-9]+)       tiki-browse_gallery.php?galleryId=$1     [QSA,L]
RewriteRule ^newsletter([0-9]+)    tiki-newsletters.php?nlId=$1             [QSA,L]
RewriteRule ^quiz([0-9]+)          tiki-take_quiz.php?quizId=$1             [QSA,L]
RewriteRule ^survey([0-9]+)        tiki-take_survey.php?surveyId=$1         [QSA,L]
RewriteRule ^tracker([0-9]+)       tiki-view_tracker.php?trackerId=$1       [QSA,L]
RewriteRule ^wiki-([A-Za-z0-9]+)   tiki-index.php?page=$1                   [QSA,L]
RewriteRule ^page-([A-Za-z0-9]+)   tiki-index.php?page=$1                   [QSA,L]
RewriteRule ^irc([0-9]+)           tiki-irc_logs.php?focus=$1               [QSA,L]
RewriteRule ^int([0-9]+)           tiki-integrator.php?repID=$1             [QSA,L]
RewriteRule ^sheet([0-9]+)         tiki-view_sheets.php?sheetId=$1          [QSA,L]
RewriteRule ^ws([0-9]+)            tiki-workspaces_desktop.php?workspaceId=$1    [QSA,L]

RewriteRule \.(css|gif|jpg|png|php|html|js|htm|shtml|cgi|sql|phtml|txt|ihtml)   -       [L]

# todo add support for all characters allowed in a Wiki name
# make sure this is the last rule!
RewriteRule ^show:(~?)([-_\+A-Za-z0-9]+)$  tiki-slideshow.php?page=$1$2      [QSA,L]
RewriteRule     ^([^/\.]+)$    tiki-index.php?page=$1                   [QSA,L]
{CODE}

        

History

Information Version
Tue 19 of Jun, 2018 15:00 GMT-0000 Bernard Sfez / Tiki Specialist Changing wiki page link to external url link that will work when applying the profile outside profile.tiki.org [Rollback by Bsfez to version 13] 15
Tue 19 of Jun, 2018 15:03 GMT-0000 Bernard Sfez / Tiki Specialist Typo 14
Tue 19 of Jun, 2018 15:00 GMT-0000 Bernard Sfez / Tiki Specialist Changing wiki page link to external url link that will work when applying the profile outside profile.tiki.org 13
Tue 14 of Sep, 2010 00:25 GMT-0000 Marc Laporte cleaner 12
Sun 02 of Aug, 2009 10:39 GMT-0000 Marc Laporte 11
Sun 02 of Aug, 2009 10:37 GMT-0000 Marc Laporte 10
Sun 02 of Aug, 2009 10:31 GMT-0000 Marc Laporte 9
Mon 18 of May, 2009 14:12 GMT-0000 Marc Laporte Plugin modified by editor. 8
Mon 18 of May, 2009 14:11 GMT-0000 Marc Laporte Plugin modified by editor. 7
Mon 18 of May, 2009 13:03 GMT-0000 Jonny Bradley Plugin modified by editor. 6
Mon 18 of May, 2009 13:02 GMT-0000 Jonny Bradley Plugin modified by editor. 5
Thu 16 of Oct, 2008 02:11 GMT-0000 Marc Laporte 4
Thu 28 of Aug, 2008 14:35 GMT-0000 System Administrator 3
Tue 01 of Jul, 2008 15:06 GMT-0000 System Administrator 2
Tue 01 of Jul, 2008 15:01 GMT-0000 System Administrator 1