From users-return-117113-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Sun Mar 4 00:34:49 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AB9A8180654 for ; Sun, 4 Mar 2018 00:34:48 +0100 (CET) Received: (qmail 21581 invoked by uid 500); 3 Mar 2018 23:34:47 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 21571 invoked by uid 99); 3 Mar 2018 23:34:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2018 23:34:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A576618015C for ; Sat, 3 Mar 2018 23:34:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 35UK8yzlr_tb for ; Sat, 3 Mar 2018 23:34:45 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B4C7F5F640 for ; Sat, 3 Mar 2018 23:34:44 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id a20so7963054wmd.1 for ; Sat, 03 Mar 2018 15:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZXcTSDVrs6JmeVihGK3EXGvILfbIshXm5Kvx4WOFq+c=; b=KhXcvER3Gh8Tb4CG64yBliTxrJc6iVCGhV4HF6KWw6XZv9IrTU5VnnjSAyJ8YRSznq tWQlvgdRa+SYkLm2+3yPy0otI/3Lb4Lso7/kRukfoaeB/3S0vlfhkmcOBLWblvBKz8VX 6fM0KywLz8NJmPgBGLI6YkH7bm4AJ0LnfBl0CYCMYMFRlzN/HrO773YlDbni1utr8Rvi C4fIlpASznVbeo8TBK7go/Vwy3ES9xjRHU6fuT4XC82OtyJH2Ak8ZD9AT4qhPGZmpQn0 52bXLyyrk6BB0Cyue/y3gAo1ZN0sKxKckUwyY9wxIOBsHy+oZZam6bOz61l8epoRuaEQ pwYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZXcTSDVrs6JmeVihGK3EXGvILfbIshXm5Kvx4WOFq+c=; b=aR2ghBUKxWd1WYQn92wecU8MOuemi0qSR9xGawo4bqG3ydj4BNjS1Twq93YAXnhPbN SgZYfdcd4TnADg6r62aJXMzCtArZ8EJVW+kkylogI+pIQdybAREZQ+EQozHaXDjo1eD8 I+KvRSYomRS4tpLJEwEX8Q2ekO/ZtgDOrSqCSimofNvXE5shrQu5uiQ8TZ67Xp33wgXp 0WCqgtrg1woV2sC+oiIkZAWkYSnzECrVBEq+klJxOypWiyFEiXaGLviCHFWoZ3Ty7H01 /SrMCziTKZnD8bDVveYEumZ0Ck9cJ9hNxrJwcqiDj8uzCal+IuwQBFbvOhrCEwWZ9VZU 5z6w== X-Gm-Message-State: AElRT7EIxsUHxFS61zhK5xfM/jEOYxU5RS6vw75odRsm7yUw7QnPVgIz KR6Me8j4EureB8GMRmKa8hbHj730QRLjM6k/onUH6g== X-Google-Smtp-Source: AG47ELuWaUbqPaFeq43jdPf4a9aM4dxrTxDDRCMgM8fhk2qI7MpS+vmn55CtfETmiY2nZH1MlnH84Np7sbtzHHqSA+A= X-Received: by 10.28.35.14 with SMTP id j14mr4254863wmj.43.1520120084091; Sat, 03 Mar 2018 15:34:44 -0800 (PST) MIME-Version: 1.0 From: Wilmer Arambula Date: Sat, 03 Mar 2018 23:34:33 +0000 Message-ID: To: "users@httpd.apache.org" Content-Type: multipart/alternative; boundary="001a113ead28a0d82105668a89e0" Subject: [users@httpd] Reditect HTTP to HTTPS .htaccess --001a113ead28a0d82105668a89e0 Content-Type: text/plain; charset="UTF-8" i have the following .htaccess: RewriteEngine On #### # Certain hosts may require the following line. # If vanilla is in a subfolder then you need to specify it after the /. # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum) #### #RewriteBase / # Make sure that / doesn't try to go to index.php without a rewrite :) DirectoryIndex disabled #### # Deny access to certain directories that SHOULD NOT be exposed. #### RewriteRule (^|/)\.git - [L,R=403] RewriteRule ^cache/ - [L,R=403] RewriteRule ^cgi-bin/ - [L,R=403] RewriteRule ^uploads/import/ - [L,R=403] RewriteRule ^vendor/ - [L,R=403] #### # Prevent access to any php script by redirecting the request to /index.php # You can add an exception by adding another RewriteCond after this one. # Example: RewriteCond %{REQUEST_URI} !^/yourscriptname.php$ # You can comment out this section if it causes you problems. # This is just a nice to have for security purposes. #### RewriteCond %{REQUEST_URI} !/index.php$ RewriteRule (.+\.php) [E=X_REWRITE:1,E=X_PATH_INFO:/$1,L] #### # Redirect any non existing file/directory to /index.php #### RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) index.php [E=X_REWRITE:1,E=X_PATH_INFO:/$1,L] #### # Add the proper X_REWRITE server variable for rewritten requests. #### RewriteCond %{ENV:REDIRECT_X_REWRITE} .+ RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+) RewriteRule ^index\.php - [E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L] What would be the best way to redirect http to https, I have searched in google and tried several configurations but so far I have not been able to make it work correctly ? --001a113ead28a0d82105668a89e0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
i have the following .htaccess:
<IfModule mod_rewrite.c>
    RewriteEngine On

    ####
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBas=
e /forum)
    ####
    #RewriteBase /

    # Make sure that / doesn't try to go to index.php without a rewrite=
 :)
    DirectoryIndex disabled

    ####
    # Deny access to certain directories that SHOULD NOT be exposed.
    ####
    RewriteRule (^|/)\.git - [L,R=3D403]
    RewriteRule ^cache/ - [L,R=3D403]
    RewriteRule ^cgi-bin/ - [L,R=3D403]
    RewriteRule ^uploads/import/ - [L,R=3D403]
    RewriteRule ^vendor/ - [L,R=3D403]

    ####
    # Prevent access to any php script by redirecting the request to /index=
.php
    # You can add an exception by adding another RewriteCond after this one=
.
    # Example: RewriteCond %{REQUEST_URI} !^/yourscriptname.php$
    # You can comment out this section if it causes you problems.
    # This is just a nice to have for security purposes.
    ####
    RewriteCond %{REQUEST_URI} !/index.php$
    RewriteRule (.+\.php) [E=3DX_REWRITE:1,E=3DX_PATH_INFO:/$1,L]

    ####
    # Redirect any non existing file/directory to /index.php
    ####
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule (.*) index.php [E=3DX_REWRITE:1,E=3DX_PATH_INFO:/$1,L]

    ####
    # Add the proper X_REWRITE server variable for rewritten requests.
    ####
    RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
    RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
    RewriteRule ^index\.php - [E=3DX_REWRITE:1,E=3D!REDIRECT_X_REWRITE,E=3D=
X_PATH_INFO:%1,E=3D!REDIRECT_X_PATH_INFO,L]
</IfModule>

What would be the best way to redirect = http to https, I have searched in google and tried several configurations b= ut so far I have not been able to make it work correctly ?

<= /div> --001a113ead28a0d82105668a89e0--