⌈⌋ branch:  freshcode


Check-in [baa05022e2]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:baa05022e2bef1af107410aff94dcc1b54c4f50d
Date: 2015-04-20 22:56:14
User: mario
Comment:Broke up main RewriteRule for readability and constraining subpage input.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-04-20
22:57
[cd58099048] Introduced "summary" field on /submit form. Currently .semi-visible because it's not displayed yet anywhere, and existing project entries need update first. (user: mario, tags: trunk)
22:56
[baa05022e2] Broke up main RewriteRule for readability and constraining subpage input. (user: mario, tags: trunk)
2015-04-15
15:13
[a1206e67e3] Prepared default filter for short project `summary` field. Limited to 200 chars in the DB, but just 160 for current usage. (Still needs UI/submit form integration anyway.) (user: mario, tags: trunk)
Changes

Changes to .htaccess.

44
45
46
47
48
49
50
51
52
53



54
55
56
57
58
59
60
61
62
63
64
65
66
67

#-- Temp disable
#RewriteRule  ^               error500.html                       [L]



#-- Page dispatching
RewriteRule  ^index/?$		/			[R=301,L]
RewriteRule  ^$                 index.php?page=index    [L,NS,QSA]
RewriteRule  ^(projects|submit|search|flag|names?|tags?|feed|login|links|rc|admin|github-releases|launchpad-releases|drchangelog)\b/?(\w+(?:[-_]\w+)*(?:\.\w{1,7})?)?(?:\.(json|atom|rss))?/?$   index.php?page=$1&name=$2&ext=$3   [L,NS,QSA]



RewriteRule  ^(url|go)/(\w+(?:[-_.]\w+)*)/(\w+)/?$   index.php?page=redir&name=$2&ext=$3   [L,NS,QSA]
RewriteRule  ^(forum|meta)\b/?(\w+)?/?$   page_forum.php?name=$2   [L,NS,QSA]

#-- Deny direct invocations
RewriteRule  ^freshcode\.db.*$  -                       [F]
RewriteRule  ^\.                -                       [F]
RewriteCond  %{ENV:REDIRECT_STATUS}  !200
RewriteRule  ^\w+\.php(|/.*)$   -                       [F,L,NS]


#-- invalid resources
RewriteRule ^favicon\.(png|ico|jpeg)$ http://freshcode.club/img/changes.png [R=301,L]









|
|
|
>
>
>
|
|












44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

#-- Temp disable
#RewriteRule  ^               error500.html                       [L]



#-- Page dispatching
RewriteRule  ^index/?$							/			[R=301,L]
RewriteRule  ^$								index.php?page=index    [L,NS,QSA]
RewriteRule  ^(projects|submit|search|flag|feed|admin)\b/?(\w+(?:[-_]\w+)*(?:\.\w{1,7})?)?(?:\.(json|atom|rss))?/?$   index.php?page=$1&name=$2&ext=$3   [L,NS,QSA]
RewriteRule  ^(search|flag|names?|tags?|login|links|rc)(?:/(\w+)?)?$	index.php?page=$1&name=$2	[L,NS,QSA]
RewriteRule  ^(github-releases|launchpad-releases|drchangelog)/?$	index.php?page=$1	[L,NS,QSA]
RewriteRule  ^(ssl)/?$							index.php?page=$1	[L,NS,QSA]
RewriteRule  ^(url|go)/(\w+(?:[-_.]\w+)*)/(\w+)/?$			index.php?page=redir&name=$2&ext=$3	[L,NS,QSA]
RewriteRule  ^(forum|meta)\b/?(\w+)?/?$					page_forum.php?name=$2	[L,NS,QSA]

#-- Deny direct invocations
RewriteRule  ^freshcode\.db.*$  -                       [F]
RewriteRule  ^\.                -                       [F]
RewriteCond  %{ENV:REDIRECT_STATUS}  !200
RewriteRule  ^\w+\.php(|/.*)$   -                       [F,L,NS]


#-- invalid resources
RewriteRule ^favicon\.(png|ico|jpeg)$ http://freshcode.club/img/changes.png [R=301,L]