Skip to content

Commit 6414095

Browse files
committed
docs: add URL Structure and terms
1 parent b252439 commit 6414095

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

user_guide_src/source/general/urls.rst

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,47 @@ CodeIgniter URLs
99
By default, URLs in CodeIgniter are designed to be search-engine and human-friendly. Rather than using the standard
1010
"query-string" approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a **segment-based** approach::
1111

12-
example.com/news/article/my_article
12+
https://example.com/news/article/my_article
1313

1414
Your URLs can be defined using the :doc:`URI Routing </incoming/routing>` feature with flexibility.
1515

1616
The :doc:`URI Library <../libraries/uri>` and the :doc:`URL Helper <../helpers/url_helper>` contain functions that make it easy to work with your URI data.
1717

18+
URL Structure
19+
=============
20+
21+
Base URL contains only the Hostname
22+
-----------------------------------
23+
24+
When you have the Base URL **https://www.example.com/** and imagine the following URL::
25+
26+
https://www.example.com/blog/news/2022/10?page=2
27+
28+
We use the following terms:
29+
30+
======== ============================
31+
Base URL **https://www.example.com/**
32+
URI path /blog/news/2022/10
33+
Route /blog/news/2022/10
34+
Query page=2
35+
======== ============================
36+
37+
Base URL contains Sub folders
38+
-----------------------------
39+
40+
When you have the Base URL **https://www.example.com/ci-blog/** and imagine the following URL::
41+
42+
https://www.example.com/ci-blog/blog/news/2022/10?page=2
43+
44+
We use the following terms:
45+
46+
======== ====================================
47+
Base URL **https://www.example.com/ci-blog/**
48+
URI path /ci-blog/blog/news/2022/10
49+
Route /blog/news/2022/10
50+
Query page=2
51+
======== ====================================
52+
1853
Removing the index.php file
1954
===========================
2055

0 commit comments

Comments
 (0)