redirect but keep url in adres

Discussion in 'Installation/Configuration' started by hjvg, May 1, 2021.

  1. hjvg

    hjvg New Member

    Hello i am trying to redirect a url to a other file/folder but i want to keep the main url in the adres bar

    https //apply.example.com is the website we want people to type in
    and it should redirect to:
    https //folder1.example.coml/apply

    so i setted up a redirect in isp config
    Redirect type: L
    redirect path: https //folder1.example.coml/apply
    SeO Redirect: No redirect
    HTTP to HTTPS: enabled

    but when i go to https //apply.example.com
    the adress in the browser is getting changed to
    https //folder1.example.coml/apply

    if i readed it well it should work the way i want it to work but some how it is not

    am i missing somting or?

    i also tryed to add this to Apache Directives:
    <Directory/var/www/clients/clientxx/webXXX>
    AllowOverride All
    </Directory>

    but does not change anything


    the redirect it self is working but it keeps chaning the url in the browser
     
    Last edited: May 1, 2021
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What you want to use is a proxy, to show a different site. Select "proxy" for redirect type.
     
  3. hjvg

    hjvg New Member

    with the option proxy and all the other things the same

    and Apache Directives
    <Directory/var/www/clients/client0/web7>
    AllowOverride All
    </Directory>

    it does the same as the L option it does redirect but changes the https //apply.example.com link to https //folder1.example.coml/apply
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then there are probably other rewrite rules besides the ones written by ISPCpnfig e.g. in a .htaccess file or the target website forces the URL rewrite with a refresh or the URL change is cached in your browser, try using incognito mode for the tests or empty cache.
     

Share This Page