Forum Discussion
rewrite HTML/JavaScript content from backend server
Our company deployed a website that consists of a large number of JavaScript/Silverlight elements. The website is configured to display in Portal access with minimal patching.
The website loads correctly via the F5 however links on the left hand side connect to a back end report server.
When a user (from Internet) clicks on a link on the website that points to an internal server it gives a “page cannot be displayed” because the internal server name cannot be resolved via public DNS servers.
I would like to know how to rewrite HTML/JavaScript content from the back end server response to replace every occurrences of “ ” with “;
Any help in this matter would be most appreciated.
”
- Leonardo_Souza
Cirrocumulus
The correct way is to explain whoever wrote the website, the difference between relative and absolute URLs, and change those links to relative.
First result in google search:
http://www.dirigodev.com/blog/seo-web-best-practices/relative-vs-absolute-urls-seo/
If you don't want go that path, you can do that in F5, replacing the private FQDN with the public one.
You can use a stream profile, either adding to the virtual server, or an iRule to do some logic. Here are some solutions to explain how to use that:
https://support.f5.com/csp/article/K8115
https://support.f5.com/csp/article/K7027
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