Results 1 to 5 of 5

Thread: after htaccess Contao 2.9.1 redirects to http from https

  1. #1
    New user
    Join Date
    06-30-15.
    Posts
    5

    Frage after htaccess Contao 2.9.1 redirects to http from https

    I have been asked to take on a new site, it is Contao 2.9.1.
    My experience with Contao is limited

    I have configured and tested this site with an htaccess file forcing https and the site loops.
    The cloud hosting vendor confirm it is the "scripts" that is resulting in the redirect back to http.

    I note in the Contao built pages, there is a base href setting to http://www.domainname.com/
    Where is this set, as possibly this is what is causing the issue, so I would like to override it to https://www.domainname.com

    There is a redirect extension installed, but I do not find where it is set, and wonder if this could be the cause. The module appears to be https://contao.org/en/extension-list...030009.de.html

    Other thoughts on where to review would be appreciated.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    999

    Default

    I would try the following:

    • Switch to the HTTPS front end via .htaccess:
      Code:
        RewriteCond %{HTTPS} !=on
        RewriteCond %{ENV:HTTPS} !=on
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    • Disable the [redirect] extension
    • Purge the page cache (Back end "System" > "Maintenance ") and the browser cache
    Last edited by xchs; 03/07/2018 at 00:03.
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    06-30-15.
    Posts
    5

    Default

    Thank you of the thoughts:
    How do I disable the "redirect" extension? Under "extension manager" I do not see a disable option, only an uninstall option.
    Under "System Settings" in "Inactive Extensions" "redirect" is listed. Does that mean it is inactive, or can be if I selected it? Once deactivated, how would I reactivate if desired?

    Inactive extensions
    [backend_filterwiz]
    [backend_tabletree]
    [browserdetection]
    [calendarfield] Calendar field
    [calendar] Events
    [catalog] Catalog
    [catalog_encrypted]
    [changelanguage] Change Language
    [comments] Comments
    [conditionalforms] Conditional forms
    [cust_support]
    [faq] FAQ
    [form_encrypted]
    [listing] Listing
    [newsletter] Newsletters
    [news] News
    [redirect] Redirect Modules
    [registration] User registration
    [rep_base] Repository base
    [rep_client] Repository client
    [rss_reader] RSS reader
    [taxonomy] Taxonomy
    [tpl_editor] Templates

    I have tried variations with the htacess and have purged "data" as available in the maintenance window, options are shown below.
    Purge data
    Select all
    tl_undo (0 entries)
    tl_version (10 entries)
    tl_search (9 entries)
    tl_search_index (541 entries)
    system/tmp (0 entries)
    system/html (30 entries)
    CSS files
    XML files



    Quote Originally Posted by xchs View Post
    I would try the following:

    • Switch to the HTTPS front end via .htaccess:
      Code:
        RewriteCond %{HTTPS} !=on
        RewriteCond %{ENV:HTTPS} !=on
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    • Disable the [redirect] extension
    • Purge the page cache (Back end "System" > "Maintenance ") and the browser cache

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    999

    Default

    Quote Originally Posted by srshaw3 View Post
    Under "System Settings" in "Inactive Extensions" "redirect" is listed. Does that mean it is inactive, or can be if I selected it?
    Yes, the latter.

    Quote Originally Posted by srshaw3 View Post
    Once deactivated, how would I reactivate if desired?
    Deselect the option again.
    Contao Community Moderator
    → Support options

  5. #5
    New user
    Join Date
    06-30-15.
    Posts
    5

    Default

    Excellent, thank you very much. Does the forum have a donation option to support the community?

    Quote Originally Posted by xchs View Post
    Yes, the latter.


    Deselect the option again.

Bookmarks

Posting Permissions

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