Mystery directives in website Options

Discussion in 'ISPConfig 3 Priority Support' started by Taleman, Nov 16, 2018.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I just discovered there is the below code in website Options Apache Directives:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^ [NC]
    RewriteRule (.*)$1 [L,R=301]
    I believe it was put there by some ancient web panel user, maybe even from ISPConfig 2 times. Anyway, that code gets added to the .vhost file, but is it needed? I think it directs plain website url to, and now ISPConfig can do that. Or can it? I do not find such a setting in ISPConfig panel.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    maybe you put that as default in the web_domain table with phpmyadmin? In any case, it should not be necessary anymore, you can do that redirect on the redirect tab, it's named seo redirect.
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I removed the Apache Directives completely, the website works just fine without it.
    Thanks for info.

Share This Page