Forum

Alias not work but OK for redirect, permalink and index file

Mustafa Ramadhan
3 October 2013, 15:19
Hiawatha version: 9.2
Operating System: Centos 5/6 for 32bit/64bit

Implementing Hiawatha in Kloxo-MR near final. Redirect, permalink and index file running well with:
UrlToolkit {
ToolkitID = findindexfile
Match ^([^?]*)/(\?.*)?$ Rewrite $1/index.php$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.php(\?.*)?$ Rewrite $1/index.html$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.html(\?.*)?$ Rewrite $1/index.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.htm(\?.*)?$ Rewrite $1/$2 Continue
}

UrlToolkit {
ToolkitID = permalink
RequestURI exists Return
## process for 'special dirs' of Kloxo-MR
Match ^/(stats|awstats|awstatscss|awstats)(/|$) Return
## process for 'special dirs' of Kloxo-MR
Match ^/(cp|error|webmail|__kloxo|kloxo|kloxononssl|cgi-bin)(/|$) Return
Match ^/(css|files|images|js)(/|$) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match /(.*)\?(.*) Rewrite /index.php?path=$1&$2
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}

UrlToolkit {
ToolkitID = redirect_bugfix_potissima_com
RequestURI exists Return
Match ^/kloxo(/|$) Redirect https://bugfix.potissima.com:7777/$1
Match ^/kloxononssl(/|$) Redirect http://bugfix.potissima.com:7778/$1
Match ^/webmail(/|$) Redirect http://webmail.bugfix.potissima.com/$1
Match ^/cp(/|$) Redirect http://cp.bugfix.potissima.com/$1
Match ^/stats(/|$) Redirect http://bugfix.potissima.com/awstats/awstats.pl
}

## web for 'bugfix.potissima.com'
VirtualHost {
Hostname = bugfix.potissima.com, www.bugfix.potissima.com

WebsiteRoot = /home/admin/bugfix.potissima.com

EnablePathInfo = yes

Alias = /__kloxo:/home/admin/kloxoscript
...

#StartFile = index.php
UseToolkit = redirect_bugfix_potissima_com, findindexfile, permalink
}

but 'alias' still not work.

Access to 'http://bugfix.potissima.com/__kloxo' will be 'Error 404'.

The questions is how to fix or trick to solve this issue.
Hugo Leisink
4 October 2013, 00:04
Please note that the UrlToolkit doesn't take the Alias into acount.
This topic has been closed.