How to configure URL rerwite on IHS that has plugins enabled forWAS
Hi everyone,
I have a webserver and a application server with plugins configured to access the application from the IHS end.
The app can be accessed via [url]http://webserver/Analytics/abs.dll?Mainpage[/url]
However, I want this to happen instead.
When users navigate to [url]http://webserver[/url], I want them to hit the application at [url]http://webserver/Analytics/abs.dll?Mainpage[/url] instead, but I want the URL to remain at [url]http://webserver[/url], so it's not just a simple redirect.
I have tried using the apache rewrite. but it doesn't seem to be working. The problem is that it keeps looking for /Analytics/* on the physical IHS server file system. But of course these files/folders don't exist on the IHS server, they exist at the app server layer which is why we have a plugin.
This is what I have in the httpd.conf file:
RewriteEngine on
Rewrite ^/$ /Analytics/abs.dll?Mainpage
How can I solve this problem?
Thanks
Re: How to configure URL rerwite on IHS that has plugins enabledfor WAS
an update:
i added the [R] flag, i have no idea what it does, but i saw some examples and gave it a try..
RewriteEngine on
Rewrite ^/$ /Analytics/abs.dll?Mainpage [R]
now when i hit [url]http://webserver[/url], it automatically redirects to [url]http://webserver/Analytics/abs.dll?Mainpage[/url], but the URL also shows as [url]http://webserver/Analytics/abs.dll?Mainpage[/url]. is there a way to make it show [url]http://webserver[/url] only? thx
Re: How to configure URL rerwite on IHS that has plugins enabledfor WAS
[email]rlee@us.ibm.com[/email] wrote:[color=blue]
> an update:
>
> i added the [R] flag, i have no idea what it does, but i saw some examples and gave it a try..
>
>
> RewriteEngine on
> Rewrite ^/$ /Analytics/abs.dll?Mainpage [R]
>
>
> now when i hit [url]http://webserver[/url], it automatically redirects to [url]http://webserver/Analytics/abs.dll?Mainpage[/url], but the URL also shows as [url]http://webserver/Analytics/abs.dll?Mainpage[/url]. is there a way to make it show [url]http://webserver[/url] only? thx[/color]
[url]http://publib.boulder.ibm.com/httpserv/ihsdiag/plugin_alter_uri.html[/url]
You'll likely break a lot of your relative links when you start
inventing/removing subdirectories in the URL-path.
--
Eric Covener