.htaccess and ISPConfig issue maybe FTP issue

Discussion in 'Installation/Configuration' started by Troy, May 8, 2019.

  1. Troy

    Troy New Member

    OK, made an .htaccess file to redirect domain.com to another page on the same domain site like this.
    Redirect 301 / https://www.domain.com/webmail/

    Here's the weird think I ftped the .htaccess file to the domain ftp folder and it effects all my domains they all get redirected.

    I want the domain.com to open the roundcube webmail so all my domains can check mail in the same place by just opening goring to the shortdomainnamehere.com site I have created for checking email.

    Why would the .htaccess globally effect all the hosted sites have not installed wordpress hope this does not become a issue?

    I would use ispconfig 3.1 redirect but could not figure out how to set it up not that advanced yet. :)

    Don't understand redirect L,R,No flag,R=301.L yet.

    Any help is appreciated had to redirect via meta tag in index.html.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    A .htaccess file can affect only the website you added it to. If you added multiple domains to a website like alias- or subdomains, then all these domains get affected, but no other websites. But if you would upload a .htaccess file to e.g. /var/www instead of /var/www/yourdomain.tld/web, then it might affect other sites as well. To which folder did you upload the .htaccess file?

    There are some infos in the ISPConfig on this topic. If you like to know all the details, take a look here to see what the apache rewrite flags do: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
     
  3. Troy

    Troy New Member

    Still learning :)
     

Share This Page