Forum

Rewrite rules

Odd-Jarle Kristoffersen
13 March 2013, 16:58
Hiawatha version: 8.7
Operating System: CentOS 6.3

Hi, I am a bit stuck on how to change these htaccess rewrites into Hiawatha rewrites... FollowSymlinks I found in the hiawatha.conf settings.

Options FollowSymlinks Multiviews

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteRule ^(.*)$ index.php/$1/

AcceptPathInfo On

This is btw for the Observium monitoring software. The rewrites looked simple so I hope they can be implemented in Hiawatha easily.
Hugo Leisink
13 March 2013, 18:15
I think your UrlToolkit rule you are looking for is this:
RequestURI exists Return
Match .*\.(js|ico|txt|gif|jpg|png|css|php) Return
Match ^/(.*) Rewrite /index.php/$1/

Use "EnablePathInfo = yes" in your VirtualHost section.
This topic has been closed.