-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
91 lines (82 loc) · 3.52 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
39
40
41
42
43
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
ErrorDocument 404 /404.php
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^.*(MauiBot|80legs|bing|Ahrefs).*$ [NC]
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteRule .* - [R=503,L]
RewriteEngine on
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
RewriteRule ^comic/([0-9-]+)/?$ comicinfo.php?comic=$1
RewriteRule ^profile/([0-9-]+)/?$ profile.php?user=$1
RewriteRule ^widgets/([0-9-]+)/?$ widgets.php?comic=$1
RewriteRule ^profile/?$ profile.php
RewriteRule ^subscribers/([0-9-]+)/?$ readerlist.php?comic=$1
RewriteRule ^search/?$ search.php
RewriteRule ^search/all/?$ browse.php
RewriteRule ^faq/?$ faq.php
RewriteRule ^tags/?$ tags.php
RewriteRule ^warnings/?$ warnings.php
RewriteRule ^login/?$ login.php
RewriteRule ^logout/?$ logout.php
RewriteRule ^contact/?$ contact.php
RewriteRule ^edit/([0-9-]+)/?$ edit.php?comic=$1
RewriteRule ^browse/?$ browse.php
RewriteRule ^privacy/?$ privacy.php
RewriteRule ^tos/?$ tos.php
RewriteRule ^submit/?$ submit.php
RewriteRule ^crawltest/?$ crawlcheck.php
RewriteRule ^pages/([0-9-]+)/?$ pageedit.php?comic=$1
RewriteRule ^dashboard/?$ dashboard.php
RewriteRule ^claim/([0-9-]+)/?$ claim.php?comic=$1
RewriteRule ^crawledit/([0-9-]+)/?$ crawledit.php?comic=$1
RewriteRule ^checkcrawledit/([0-9-]+)/?$ crawlcheckedit.php?comic=$1
Redirect /inkdropcafe /search?yestags%5B%5D=Ink+Drop+Cafe&advanced=True
Redirect /startfaire /search?yestags%5B%5D=StArt+Faire&advanced=True
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit