Hello Hugo
May I ask your help regarding 2 Apache's .htaccess rewrite rules as I am total regex 0. These are ony things keepeng me moving 2 very popular sites to Hiawatha : )
1:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.url.ba [NC]
RewriteRule ^(.*)$ http://url.ba/$1 [R=301,L]
RewriteRule ^api\.php /index.php?c=api&m=index&%{QUERY_STRING} [L]
RewriteRule ^contact\.php /index.php?c=contact&m=index&%{QUERY_STRING} [L]
RewriteRule ^([a-zA-Z0-9]{4,25})$ /index.php?c=api&m=check&hash=$1 [L]
RewriteCond $1 !^(index\.php|images|css|script|ZeroClipboard\.swf)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) / [R=301,L]
2.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.img.ba.ba$ [NC]
RewriteRule ^(.*)$ http://img.ba/$1 [R=301,L]
RewriteCond $1 !(\/protected)$
RewriteRule ^(.*)\/protected$ /protected.php?hash=$1 [L]
RewriteCond $1 !(thumb\.php)$
RewriteRule ^(.*)\/thumb$ /thumb.php?hash=$1 [L]
RewriteCond $1 !^(index\.php|thumb\.php|upload\.php|contact\.php|protected\.php|api\.php|password\.php|favicon\.ico|images|css|script)
RewriteRule ^(.*)$ /index.php?hash=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) / [R=301,L]
Thanks a bunch
Hiawatha version: 7.5
Operating System: Debian