-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
28 lines (21 loc) · 1.07 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
# Gravity Department - Design Docs
# https://github.com/gravitydepartment/design-docs
#
# @author Brendan Falkowski
# @copyright Gravity Department. All rights reserved.
# ===============================================
# URL Rewrites
# ===============================================
RewriteEngine on
# -----------------------------------------------
# Use these rules if running from the domain root like:
# http://domain.com/
RewriteRule ^([a-z0-9_-]+)/?$ /index.php?p1=$1
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /index.php?p1=$1&p2=$2
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /index.php?p1=$1&p2=$2&p3=$3
# -----------------------------------------------
# Use these rules if running from a sub-folder like:
# http://domain.com/design/
#RewriteRule ^([a-z0-9_-]+)/?$ /design/index.php?p1=$1
#RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /design/index.php?p1=$1&p2=$2
#RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /design/index.php?p1=$1&p2=$2&p3=$3