You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/general/urls.rst
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,47 @@ CodeIgniter URLs
9
9
By default, URLs in CodeIgniter are designed to be search-engine and human-friendly. Rather than using the standard
10
10
"query-string" approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a **segment-based** approach::
11
11
12
-
example.com/news/article/my_article
12
+
https://example.com/news/article/my_article
13
13
14
14
Your URLs can be defined using the :doc:`URI Routing </incoming/routing>` feature with flexibility.
15
15
16
16
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.
17
17
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::
0 commit comments