1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

External Redirect then Internal Redirect back

Discussion in 'Apache' started by JasonWritesCode, May 17, 2017.

  1. #1
    I have a need to redirect a url externally then use that same path internally and I'm getting into a redirection loop. Which makes sense, but there must be a way to do this....

    For example, I need to redirect this URL:

    example.com/content/foo/en_us/bar/baz.html

    which is the full path to a product details page. But we want to remove part of that path to:

    example.com/foo/bar/baz.html

    Currently both paths work in the configuration. But I want to 301 redirect users that are using the full path to the newer, and then access that content on the full path. So basically I want to redirect the user externally to the newer path and then access the content on its full path via httpd.conf

    Any ideas..?
     
    JasonWritesCode, May 17, 2017 IP