155
edits
No edit summary |
No edit summary |
||
| Line 255: | Line 255: | ||
We opened our favorite text editor and replace with the following code. | We opened our favorite text editor and replace with the following code. | ||
<?php | <?php<br /> | ||
header("Location: dolibarr/htdocs"); | header("Location: dolibarr/htdocs");<br /> | ||
?> | ?> | ||
We make a copy of index.php in dolibarr folder and re-edit it and remove dolibarr/. | We make a copy of index.php in dolibarr folder and re-edit it and remove dolibarr/. | ||
<?php | <?php<br /> | ||
header("Location: htdocs"); | header("Location: htdocs");<br /> | ||
?> | ?> | ||
| Line 274: | Line 274: | ||
We opened our text editor again and add the following. | We opened our text editor again and add the following. | ||
RewriteEngine on | RewriteEngine on<br /> | ||
RewriteCond %{HTTP:X-Forwarded-Proto} !https | RewriteCond %{HTTP:X-Forwarded-Proto} !https<br /> | ||
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L] | RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L] | ||
edits