-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
38 lines (29 loc) · 1.19 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#mydomain.com/?about-us/ -OR-
#mydomain.com/about-us/
# Set default 404 to SMPL 404
# [MUSTCHANGE] Cannot use relative paths
ErrorDocument 404 /index.php?404
# Possible Alternative
# rewriteengine on
# rewritecond %{request_filename} !-f
# rewriterule ^(.+).jpg$ program.php?i=$1.jpg [L]
# Enable Rewriting
RewriteEngine on
# Throw 404 errors anytime anyone attempts to access reserved filespaces through the web
# Prevents confirmation of existence of folders or SMPL CMS through URI pinging
RewriteRule ^/smpl-(\w+)$ index.php?404
# Rewrite URLs
# Input: /categories/uncategorized/
# Output: /index.php?categories/uncategorized/
#/api/ (special)
#/admin/ (special)
#/feed/ (special)
#/feed/custom-feed-type/
#/categories/category-title/<index>/
#/category-title/page-title/
#/category-title/articles/article-title/
#/category-title/articles/article-id/ (Force Reload to the URL with the title)
#/articles/article-title/
#/articles/article-id/ (Either date (down to the second) or hash-id), (Force Reload to the URL with the title)
#/page-name/ (Articles cannot be accessed this way, they must have the "Static Content" flag to be treated like a page)
RewriteRule ^/(?!\?)(\w+)/?$ index.php?$1