Redirect www to non www properly (wildcard / any hostname)

RewriteEngine On RewriteBase /

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

 

Redirect www.example.com to example.com (with hostname):

RewriteEngine on

RewriteCond %{HTTP_HOST} ^example.com [NC]

RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

Ich habe mit Drupal 7 einen Quiz eingerichtet. Ich habe mehrere Fragen von Inhalt-Type "Multichoice Question" und einen Quiz.

Wenn ich auf Start Quiz klicke oder "take" und danach erste Frage beantworte, bekomme ich folgende Fehlermeldng:

 

An AJAX HTTP error occurred.

HTTP Result Code: 500

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /pl/system/ajax StatusText: Internal Server Error ResponseText:

 

Was kann ich ändern, damit es funktioniert?

Projektmanagement Tools für IT Projekte

Hallo liebe Gemeinde,

in der heutigen IT-Welt ändert sich die Vorgehensweise bei IT-Projekten tagtäglich. Um den Überblick über Vorgehensweisen bei IT-Projekten zu behalten, würde ich euch nützliche und hilfreiche Software vorstellen:

Asana: Ein Projekt kann schnell viele Personen involvieren und Aufgaben können unübersichtlich werden. Mit Asana kannst Du ganz schnell und in wenigen Schritten Teams gründen und Projekte erstellen. Du kannst einzelne Mitglieder oder ganze Teams in Projekte einbinden.

Composer installieren:

  • curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

     
  • composer config repositories.drupal composer https://packages.drupal.org/8

     

Drupal Module installieren(Ausführen in Site-Root Verzeichnis, zB /home/my_website/public_html):

  • composer require "drupal/entity_print 2.x"

Suche

Neueste Kommentare

  • 3 months 3 weeks ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 4 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 4 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 4 months ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 4 months ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

  • 2 months 3 weeks ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

    Drupal 10.4:

  • 5 months ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 6 months 2 weeks ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 6 months 2 weeks ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 6 months 2 weeks ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf