Results 1 to 7 of 7

Thread: How DirectAdmin redirect http to https?

  1. #1
    Join Date
    Nov 2005
    Posts
    7

    How DirectAdmin redirect http to https?

    Hello,
    I've activate https on one of my domains but my friendly URLs, based on Rewrite Rules, are not working not.
    I suppose apache is rewriting complete URL to redirect me to https but I don't know how.

    Thanks

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,729
    Hello,

    What do you have in .htaccess? What is your domain's name? What do you have in error logs for the specific virtual host?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Nov 2005
    Posts
    7
    Rewrite is very simple:

    RewriteRule ^/(.*) index.php?path=$1

    But it returns "No page Found"

    Example:

    http://www.cspostventa.com/quienes-somos
    =
    http://www.cspostventa.com/index.php?path=quienes-somos

    My website is www.cspostventa.com

    And I've nothing strange on logs.

    Thanks again!

  4. #4
    Join Date
    Nov 2005
    Posts
    7
    My redirection is very simple:

    RewriteRule ^/(.*) index.php?path=$1

    Example:

    www.cspostventa.com/quienes-somos -> hwww.cspostventa.com/index.php?path=quienes-somos

  5. #5
    Join Date
    May 2008
    Location
    Bulgaria
    Posts
    969
    The HTTP->HTTPS redirection should be done the following way:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  6. #6
    Join Date
    Nov 2005
    Posts
    7
    I've done https redirection on DirectAdmin Panel. I can't find where directadmin write rules, because .htaccess is empty. I think Directadmin is overwriting or skipping my rules.

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,729
    Directadmin add redirects HTTP -> HTTPS into a virtual host directly, it does not modify .htaccess.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •