Repo for the useless web from GLU for the week 10/03/2025 - 14/03/2025.
- CSS 79.2%
- PHP 17.7%
- JavaScript 2.8%
- Hack 0.3%
|
|
||
|---|---|---|
| admin | ||
| api/get-gluless-sites | ||
| app | ||
| cdn | ||
| public | ||
| .gitignore | ||
| .htaccess | ||
| index.php | ||
| LICENSE | ||
| README.md | ||
PHP website folder structure/template
The PHP website folder template that rileydeman uses in his web projects!
Using this folder template
Using of this folder structure/template is completely free of charge. You are allowed to fork and/or use this repository/template and edit all the files in this template
Important
- The homepage is not in the
index.php, the index.php file gets automaticly thepublic/home.phpfile. - The public folder is for everything that the user sees, like all the pages, images etc.
- The app folder is for everything that is back-end, and what the user doesn't see, like adding items to a cart, etc.
- Be sure that the folder where the
index.phpis located, is the root from your xampp, wampp, lampp or mampp software for your localhost during development. - The
public/home.phpfile has the template for a web page, including the header and footer include - The header and footer are in the
public/core folder - The 404 page will automaticly shown at not valid urls on your localhost or website, editing the 404 page is possible in the
public/core/errors/404.phpfile - The admin folder is for the CMS (Content Management System)
- The CND folder is for the images, CND = Content Delivery Network (folder template and placeholder images coming soon)
.htacess
Mostly the .htacces file can't get the good file, in that case go to the .htaccess file and add the following code to the file:
RewriteRule ^requestName public/requestName.php
Changing document root in xampp
- Go to the folder where the index.php is located
- Copy the path to that file
- Open xampp
- Click on "config" form the apache
- Click on the top link named "Apache (httpd.conf)"
- Scoll down until you see something like this
- DocumentRoot "C:\xampp\htdocs"
- <Directory "C:\xampp\htdocs">
- Paste the copied path to both, DocumentRoot and Directory, between the ""
- Save the file and start or restart apache
- Go to localhost in your web browser
More information soon!
(c) rileydeman