Forum Discussion
Rewrite URL
Ok, so F5 support got to the bottom of this and it looks like the images are not loading because they are a different location...
So I will try to simplify this as much as I can:
So we have a server in our network which runs Focalpoint and it's accessible via this link directly:
This URL is case sensitive and has to be exact otherwise the web browser will return an error.
What we would like to do is to make the URL simpler for our users.
The ideal would be:
http://focalpoint.domainname.co.uk
We have tried to re-write client URI to server URI by using Policies, iRules, Profiles but no luck...
The only option which worked was to re-write:
to http://focalpoint.domainname.co.uk
and when typing the address in the web browser we have to manually add /servlet/Login to the URL.
So what users have to type is:
http://focalpoint.domainname.co.uk/servlet/Login
which is not very different from the original URL:
What I have been told by F5 is that actual images are based in "fp" folder not "servlet" folder.
But even if we move the images to the "servlet" folder users will still have to add the "/Login" bit to the URL.
My question to you Guys now is, is there any way of doing this or shall I give up on this?
- Stanislas_Piro2Sep 10, 2015
Cumulonimbus
Hi, Is it really necessary to rewrite? Can you only configure a policy rule to redirect path "/" to "/fp/servlet/Login" the user default URL is http://focalpoint.domainname.co.uk/ which is redirected to the login URL. - Domel_163525Sep 10, 2015
Nimbostratus
We could do redirect but the problem is that the end user will see the original URL which we would like to hide... I will try to re-write every single folder in my URL and see if that works at all. - Domel_163525Sep 10, 2015
Nimbostratus
Stanislas do you mean rewrite and redirect in the same time? So rewrite: http://focalpoint.domainname.co.uk/ to http://focalpointsvr/fp/ then redirect to http://focalpoint.domainname.co.uk/servlet/Login Would that work? - Stanislas_Piro2Sep 10, 2015
Cumulonimbus
Of course it will work.. I hope your are using https instead of http as you are authenticating users (Login URL) - Domel_163525Sep 10, 2015
Nimbostratus
Hi Stanislas, Yes, I do use https but just for testing purposes I use http. How would you do that then? - Stanislas_Piro2Sep 10, 2015
Cumulonimbus
rewrite using rewrite profile redirect using Local traffic policy : - condition http-uri path equals / - action http-reply redirect location /servlet/Login - Domel_163525Sep 10, 2015
Nimbostratus
Hi Stanislas, That worked perfectly fine. Is there any way to get this done via Policies?? - Stanislas_Piro2Sep 10, 2015
Cumulonimbus
rewrite will rewrite requests and responses including headers and payload Policies only check headers, not payload. Policies and rewrite profile are both features included in version 11.4.0 - Domel_163525Sep 10, 2015
Nimbostratus
Do I need to have APM enabled to get the rewrite service enabled (this is what I have been told by our support company but could the the option available before enabled APM) or LTM is enough?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com