Skip to content
Snippets Groups Projects
Commit 1b9b51f3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #38841 by Morbus/Ber: improved documentation about $base_url and...

- Patch #38841 by Morbus/Ber: improved documentation about $base_url and rolled back auto-detection.
parent ecd6969d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -89,17 +89,16 @@ ...@@ -89,17 +89,16 @@
/** /**
* Base URL: * Base URL:
* *
* The URL of your website's main page. It is not allowed to have * The URL to your Drupal installation. It is not allowed
* a trailing slash; Drupal will add it for you. * to have a trailing slash; Drupal will add it for you.
* *
* Examples: * Examples:
* $base_url = 'http://localhost'; * $base_url = 'http://www.example.com';
* $base_url = 'http://example.com/drupal'; * $base_url = 'http://www.example.com:8888';
* * $base_url = 'http://www.example.com/drupal';
* By default, Drupal tries to set the $base_url for you using * $base_url = 'https://www.example.com:8888/drupal';
* the code below.
*/ */
$base_url = 'http://'. $_SERVER['HTTP_HOST']; $base_url = 'http://www.example.com';
/** /**
* PHP settings: * PHP settings:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment