summaryrefslogtreecommitdiff
path: root/.htaccess
blob: d7ee645a4dedb8a0b880b02ec6659b7dac8aec03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<IfModule mod_rewrite.c>
	RewriteEngine on
#	Uncomment this if mod_rewrites are not working for you. some hosting services have cranky mod_rewrite
#	RewriteBase		/users/

	# default route catcher for *.php in package dir
	RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}.php  -f
	RewriteRule ^(.*?)$					$1.php [L,QSA]

	# pass directories through
	RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}  -d
	RewriteRule ^						- [L,QSA]

#	rule to support users/view/alan
	RewriteRule		^validate$		validate.php [L,QSA]

#	rule to support users/view/alan
	RewriteRule		^view/([-A-Za-z0-9_]+)$		index.php?home=$1 [L,QSA]

#	rule to support users/grace
	RewriteRule	^([-A-Za-z0-9_]+)$		index.php?home=$1 [L,QSA]

</IfModule>