
mt at wishlist24
Jul 8, 2012, 1:08 PM
Post #1 of 1
(260 views)
Permalink
|
|
apache rewrites from elgg
|
|
Hi List, I want to install the elgg networking engine but unfortunately the rewrites are not optional and only for apache :( don't understand the apache part nor I can adapt them for cherokee I installed elgg with apache (so I can make sure it works) now I shut down apache and start cherokee I changed alredy the default rule of the vserver to redirection and all the following rules but I don't know what to do with the %{QUERY_STRING} is this also possible on cherokee side? of course I get an http 500 ;) another question if I point my prowser to http://localhost I get also an 500 as the last rule I added additionally a rewrite rule ^\/$ => index.php now I get the homepage so here my question is this the only way to achieve this or are there better ways ok I got the hompage but without css :( but my first rule on this vserver is a Extension rule for png,gif,jpg,css,js with static content haendler what you think I made wrong ? # In for backwards compatibility RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/page_handler.php?handler=$1&%{QUERY_STRING} ok for example this apache rewrite rule how do I translate this? RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/page_handler.php?handler=$1&page=$2&%{QUERY_STRING} RewriteRule ^tag\/(.+)\/?$ engine/handlers/page_handler.php?handler=search&page=$1 RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1&%{QUERY_STRING} RewriteRule ^cache\/(.*)$ engine/handlers/cache_handler.php?request=$1&%{QUERY_STRING} RewriteRule ^services\/api\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/service_handler.php?handler=$1&request=$2&%{QUERY_STRING} RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/?$ engine/handlers/export_handler.php?view=$1&guid=$2 RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ engine/handlers/export_handler.php?view=$1&guid=$2&type=$3&idname=$4 RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php # rule for rewrite module test during install - can be removed after installation RewriteRule ^rewrite.php$ install.php # Everything else that isn't a file gets routed through the page handler RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([A-Za-z0-9\_\-]+)$ engine/handlers/page_handler.php?handler=$1 [QSA] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/page_handler.php?handler=$1&page=$2 [QSA] _______________________________________________ Cherokee mailing list Cherokee [at] lists http://lists.octality.com/listinfo/cherokee
|