-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
31 lines (23 loc) · 891 Bytes
/
.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
#AuthUserFile /home/pasteboard/www/sites/_pageonetwentysix/.htpasswd
#AuthName "Restricted Area"
#AuthType Basic
#Require valid-user
#SSLOptions +StrictRequire
#SSLRequireSSL
RewriteEngine on
RewriteRule ^about/$ /?func=about [NC,L]
RewriteRule ^signup/$ /?func=create [NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
#RewriteCond %{HTTP_HOST} !^www.pageonetwentysix.com$
#RewriteRule ^(.*)$ http://pageonetwentysix.com/$1 [R=301]
#RewriteCond %{HTTPS} =on [NC]
#RewriteRule ^(.*)$ http://pageonetwentysix.com/$1 [L]
#RewriteCond %{HTTPS} !=on [NC]
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
<IfModule mod_headers.c>
<FilesMatch "^\?func=(main|settings|logout|entries|new_entry|empty_trash|trash_untitled|delete_account)$">
Header set x-robots-tag "noindex, nofollow, noarchive"
</FilesMatch>
</IfModule>