Tikiwiki rewrite rules on virtual host ...

Using a single web hosting account to host multiple sites

Tikiwiki rewrite rules on virtual host ...

Postby xavi » Mon Oct 09, 2006 1:33 am

Another configuration which doesn't work for me, I don't know why.

I'm using TikiWiki rewrite rules on .htaccess files with no problems on the server site http://edutiki.ourproject.org (real hostname)

However, we have another domain name set for this site:
http://edu.tikiwiki.org (edu.tw.o)

The thing is that rewrite rules work fine on with "real" host name (for instance: http://edutiki.ourproject.org/forums ) , but not on the other one (http://edu.tikiwiki.org/forums), which says: "404 Not found. The requested URL /forums was not found on this server."

Do we need to make any change to our .htaccess file?
Or do we have to request some change to the server admin?

Our .htaccess file is as follows:

Code: Select all
<FilesMatch "\.(bak|inc|lib|sh|tpl)$">
   order deny,allow
   deny from all
</FilesMatch>

<Limit GET POST PUT DELETE>
order deny,allow
allow from all
</Limit>

<IfModule mod_rewrite.c>
   RewriteEngine On
   
   # direct one-word access
   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   ^eph$                  /tiki-eph.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   ^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   ^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   ^blog([0-9]+)        /tiki-view_blog.php?blogId=$1             [QSA,L]
   RewriteRule   ^chart([0-9]+)       /tiki-view_chart.php?chartId=$1           [QSA,L]
   RewriteRule   ^cat([0-9]+)         /tiki-browse_categories.php?parentId=$1   [QSA,L]
   RewriteRule   ^categ([0-9]+)       /tiki-browse_categories.php?parentId=$1   [QSA,L]
   RewriteRule   ^directory([0-9]+)   /tiki-directory_browse.php?parent=$1      [QSA,L]
   RewriteRule   ^eph([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   ^poll([0-9]+)        /tiki-poll_results.php?pollId=$1          [QSA,L]
   RewriteRule   ^vote([0-9]+)        /tiki-poll_form.php?pollId=$1             [QSA,L]
   RewriteRule   ^img([0-9]+)         /tiki-show_image.php?id=$1                     [QSA,L]
   RewriteRule   ^image([0-9]+)       /tiki-browse_image.php?imageId=$1         [QSA,L]
   RewriteRule   ^gallery([0-9]+)     /tiki-browse_gallery.php?galleryId=$1     [QSA,L]
   RewriteRule   ^gal([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   ^irc([0-9]+)         /tiki-irc_logs.php?focus=$1               [QSA,L]
   RewriteRule   ^demo([0-9]+)        /tiki-demo.php?demoId=$1                  [QSA,L]
   RewriteRule   ^decide([0-9]+)      /tiki-demo.php?demoId=$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]

   # 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   ^(~?)([-_\+A-Za-z0-9]+)(,[A-Za-z]{2})?$    /tiki-index.php?page=$1$2$3 [QSA,L]
   #for multi-byte char support use
   RewriteRule     ^([^a-z]+)([^\/]+)([^tki-]+)(.*[^.js]+)(~?)(.*)$ /tiki-index.php?page=$1$2$3$4$5$6$7$8$9 [QSA,L]

</IfModule>
xavi
 
Posts: 11
Joined: Fri May 19, 2006 10:19 am

Postby richardk » Mon Oct 09, 2006 10:10 am

No idea what's wrong? So both domains point to the same place? And /forums is the only thing that doesn't work? Does you error log have any clues? Have you asked your hosting company?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby xavi » Mon Oct 09, 2006 10:41 am

yes, both domains point to same place.
No url is rewritten properly (not only forums; that was just an example)
I've asked the sys. admin for the error log, ... (I'll report any new info that I get).
xavi
 
Posts: 11
Joined: Fri May 19, 2006 10:19 am

Postby richardk » Tue Oct 10, 2006 8:54 am

Try adding
Code: Select all
Options +FollowSymLinks

before
Code: Select all
RewriteEngine On
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby xavi » Wed Oct 11, 2006 12:54 am

No change. Same answer:
Code: Select all
Not Found
The requested URL /forums was not found on this server.
xavi
 
Posts: 11
Joined: Fri May 19, 2006 10:19 am

Postby richardk » Wed Oct 11, 2006 6:31 am

Then i have no idea, ask your host.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 46 guests

cron