Redirect tu a subfolder using ISPCONFIG 3

Discussion in 'ISPConfig 3 Priority Support' started by christian.perego, Dec 7, 2022.

  1. christian.perego

    christian.perego Member HowtoForge Supporter

    Hi,
    I have a wordpress installation that is installed in a subfolder /wordpress/ of the web root directory.
    I can't change the root directory from ISPCONFIG interface so I think I should set up a redirection using the tab "Redirect" in the web domain configuration.
    to clarify the redirection should be:
    example.com ----> example.com/wordpress/
    Can you help me what kind of redirection should I use? (R,L....)
    Thanks in advance.
    Kris
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's wrong, you can change the root directory using the Apache/Nginx directives field of the website. But in general, I highly recommend to not put e.g. WordPress in a subdirectory unless it is absolutely necessary because you run multiple apps in the same website.
     
  3. christian.perego

    christian.perego Member HowtoForge Supporter

    Ok, I'll try as personal insormation for the future. But the truth is that I am only lazy to change all the wordpress config options manually into WP database to change WP installation path. But I'll do it ;)
    BTW the L type of redirect and /wordpress/ in redirect path ispconfig3 option solved my problem. But I'll follow your advice to move the sito to the root dir.
    Thanks a lot for your help.
     

Share This Page