Forum

Rewrite rules for Yetiforce CRM

Fred
29 June 2017, 19:37
Hi all,

Could someone please help me in translating this apache rules in hiawatha format?
This is taken from .htaccess file
        RewriteRule ^favicon.ico layouts/basic/skins/images/favicon.ico [L,NC]
RewriteRule ^api/webservice/(.*)/(.*)/(.*)$ api/webservice.php?module=$1&action=$2&record=$3 [QSA,NC,L]
RewriteRule ^api/webservice/(.*)/(.*)$ api/webservice.php?module=$1&action=$2 [QSA,NC,L]
RewriteRule ^api/webservice/(.*)$ api/webservice.php?module=$1 [QSA,NC,L]

RewriteRule ^\.well-known/carddav /api/dav.php/addressbooks/ [R]
RewriteRule ^\.well-known/caldav /api/dav.php/calendars/ [R]
RewriteRule /.well-known/carddav /api/dav.php/addressbooks/ [R,L]
RewriteRule /.well-known/caldav /api/dav.php/calendars/ [R,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Thank you all in advance
Hugo Leisink
1 July 2017, 12:38
Match ^/favicon.ico Rewrite /layouts/basic/skins/images/favicon.ico
Match ^/api/webservice/(.*)/(.*)/([^?]*)(\?(.*))?$ Rewrite /api/webservice.php?module=$1&action=$2&record=$3&$5
Match ^/api/webservice/(.*)/([^?]*)(\?(.*))?$ Rewrite /api/webservice.php?module=$1&action=$2&$4
Match ^/api/webservice/([^?]*)(\?(.*))?$ Rwrite /api/webservice.php?module=$1&$3

Match /\.well-known/carddav Rewrite /api/dav.php/addressbooks/
Match /\.well-known/caldav Rewrite /api/dav.php/calendars/
This topic has been closed.