F5 Sites
  • F5.com
  • F5 Labs
  • MyF5
  • NGINX
  • Partner Central
  • Education Services Portal (ESP)
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Open Side Menu
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
GroupsEventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Forums
  3. Technical Forum

Forum Discussion

johns's avatar
johns
Ret. Employee
Jul 28, 2005

Using URI to rewrite host

I am trying to come up with a rule where the first directory name of the uri is used to rewrite the URL. an example will be:     http://www.foo.com/abc/doc/index.html =>   http://abc.foo.com...
application delivery
dev
devops
irules

Help guide the future of your DevCentral Community!

What tools do you use to collaborate? (1min - anonymous)

Jonathan - March 2026 Featured Member

DevCentral News
announcement
event
featured member

F5 AppWorld 2026 Las Vegas - iRules Contest Winners!

DevCentral News
announcement
appworld2026
contest
irules

2026 F5 DevCentral MVP Announcement

DevCentral News
announcement
devcentral mvp

Recent Discussions

  • Bigip Restoration From Hardware to VM
    Mar 19, 2026
    Sankar_Ganesh
  • Help with SSH Virtual Server
    Mar 19, 2026
    kgaigl
  • About vlangroup traffic
    Mar 18, 2026
    SanYang
  • iRule Developer Tools
    Mar 18, 2026
    bitwisecook
  • F5 rate limiting with Irule
    Mar 18, 2026
    AldoSergio
Under Attack? F5 Will Help You.
Contacting F5 Support?

DevCentral Quicklinks

* 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

Discover DevCentral Connects

* Podcasts
* Social Channels
* Video Streaming

GitHub Awesome-F5

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesTraining & Certification

SUPPORT

Manage SubscriptionsProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

©2026 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information