Forum

Need help with these Oxwall htaccess rules

Gilad
7 February 2016, 11:03
Hi,
I tried to translate these rules to Hiawatha but something is at miss.
Can you please let me know the current translation for them?

Original rules:
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php


My Translation was:
	RequestURI exists Return
Match ^/index\.php Return
Match /ow_updates/index\.php Return
Match ^/ow_updates/ Return
Match ^/ow_cron/run\.php Return
Match ^//e500\.php Return
Match /captcha\.php Return
Match (.*) Rewrite index.php


Any advice??
Thanks!
Hugo Leisink
8 February 2016, 09:34
The Hiawatha version of the rewrite rule is this:
Match ^/index\.php Return
Match /ow_updates/ Return
Match /ow_cron/run\.php Return
Match /e500\.php Return
Match /captcha\.php Return
Match .* Rewrite /index.php

Although not mentioned in the Apache rule, a 'RequestURI exists Return' at the start might indeed be required.
Gilad
8 February 2016, 09:42
Works like a charm!!
You're an Ace! Thanks Hugo!
This topic has been closed.