HTACCESS: Difference between revisions
Nicole Sharp (talk | contribs) No edit summary |
Nicole Sharp (talk | contribs) |
||
| (31 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Documentation for configuring <strong>ASF (Apache Software Foundation) Hypertext Transfer Protocol (HTTP) Server Access (HTACCESS)</strong> files. | |||
== intro == | == intro == | ||
There are no characters before the period in a "<code>.htaccess</code>" file.  HTACCESS is ideally placed into the webroot at "<code>/.htaccess</code>".  HTACCESS is written in plaintext. | |||
# [[wikipedia:HTACCESS|<cite>Wikipedia</cite>: "HTACCESS"]] | |||
# [https://help.dreamhost.com/hc/articles/216456227/ <cite>DreamHost Knowledge Base</cite>: "HTACCESS Overview"] | # [https://help.dreamhost.com/hc/articles/216456227/ <cite>DreamHost Knowledge Base</cite>: "HTACCESS Overview"] | ||
# [https://httpd.apache.org/docs/current/howto/htaccess.html <cite> | # [https://help.dreamhost.com/hc/articles/217738987/ <cite>DreamHost Knowledge Base</cite>: "What Can I Do with an HTACCESS File?"] | ||
# [https://httpd.apache.org/docs/current/howto/htaccess.html <cite>ASF HTTP Server Project Documentation</cite>: "HTACCESS Files"] | |||
== redirects == | == redirects == | ||
# [https://help.dreamhost.com/hc/articles/215747748/ <cite>DreamHost Knowledge Base</cite>: "How Can I Redirect and Rewrite my Uniform Resource Locators (URLs) with an HTACCESS File?"] | # [https://help.dreamhost.com/hc/articles/215747748/ <cite>DreamHost Knowledge Base</cite>: "How Can I Redirect and Rewrite my Uniform Resource Locators (URLs) with an HTACCESS File?"] | ||
# [https://httpd.apache.org/docs/current/mod/mod_alias.html <cite>ASF HTTP Server Project Documentation</cite>: "Alias Module"] | |||
# [[wikipedia:HTTP status codes|<cite>Wikipedia</cite>: "HTTP Status Codes"]] | # [[wikipedia:HTTP status codes|<cite>Wikipedia</cite>: "HTTP Status Codes"]] | ||
# [https://developer.mozilla.org/docs/Web/HTTP/Reference/Status/ <cite>Mozilla Developer Network</cite>: "HTTP Response Status Codes"] | # [https://developer.mozilla.org/docs/Web/HTTP/Reference/Status/ <cite>Mozilla Developer Network</cite>: "HTTP Response Status Codes"] | ||
# [https://httpwg.org/specs/rfc9110.html#overview.of.status.codes <cite>Internet Engineering Task Force (IETF) HTTP Working Group</cite>: "Internet Standard 97 (HTTP Semantics: Overview of Status Codes)"] | # [https://httpwg.org/specs/rfc9110.html#overview.of.status.codes <cite>Internet Engineering Task Force (IETF) HTTP Working Group</cite>: "Internet Standard 97 (HTTP Semantics: Overview of Status Codes)"] | ||
If you want to temporarily redirect traffic to another site, use an HTTP 302 (<em>not</em> HTTP 301) redirect.  HTTP 302 instructs searchbots to continue indexing the host domain and to check back later to see if the temporary redirect has ceased or changed. | |||
<syntaxhighlight lang="aconf"> | |||
Redirect 302 / https://nicolesharp.dreamhosters.com/ | |||
# https://httpd.apache.org/docs/current/mod/mod_alias.html#redirect | |||
# https://httpwg.org/specs/rfc9110.html#status.302 | |||
</syntaxhighlight> | |||
== error pages == | |||
# [https://help.dreamhost.com/hc/articles/215840318/ <cite>DreamHost Knowledge Base</cite>: "Custom Error Pages"] | |||
# [https://httpd.apache.org/docs/current/custom-error.html <cite>ASF HTTP Server Project Documentation</cite>: "Custom Error Responses"] | |||
# <u class="plainlinks">[https://www.nicolesharp.net/ASF/ <cite>NikkiSite</cite>: "ASF"]</u> | |||
# <u>[[403|<cite>NikkiWiki</cite>: "403 (Forbidden)"]]</u> | |||
# <u>[[404|<cite>NikkiWiki</cite>: "404 (Not Found)"]]</u> | |||
The default error pages for ASF HTTP Server are dead-end pages meaning there is no way to navigate back to the homepage if an error is encountered.  You should set up custom error pages with a hyperlink back to the homepage to improve site navigation. | |||
Custom error pages are best served as static Hypertext Markup Language (HTML) without redirecting to a Personal Homepage Hypertext Preprocessor (PHP) application like Wikimedia MediaWiki.  This ensures that the error message will display even if PHP is not working. | |||
You cannot customize the error pages for HTTP 400 or HTTP 500 errors on DreamHost shared webhosting. | |||
<syntaxhighlight lang="aconf"> | |||
ErrorDocument 403 /ASF/403.htm | |||
ErrorDocument 404 /ASF/404.htm | |||
# https://httpd.apache.org/docs/current/custom-error.html | |||
</syntaxhighlight> | |||
== MediaWiki shortlinks == | == MediaWiki shortlinks == | ||
# [[mw:Manual:Short URL/Apache|<cite>Wikimedia MediaWiki</cite>: " | # [[mw:Manual:Short URL/Apache|<cite>Wikimedia MediaWiki</cite>: "Short URL (ASF HTTP Server)"]] | ||
<syntaxhighlight lang="aconf"> | |||
RewriteEngine On | |||
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] | |||
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] | |||
# https://www.mediawiki.org/wiki/Manual:Short_URL/Apache#Setting_up_the_rewrite_rules | |||
</syntaxhighlight> | |||
== MEDIAWIKI files == | |||
# [https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset <cite>ASF HTTP Server Project Documentation</cite>: "Multipurpose Internet Mail Extension (MIME) Module"] | |||
MediaWiki source code saved as "<code>.mediawiki</code>" files will not display in the web browser unless you set the Multipurpose Internet Mail Extension (MIME) type for "<syntaxhighlight lang="aconf" inline="inline">.mediawiki</syntaxhighlight>" to "<syntaxhighlight lang="aconf" inline="inline">text/plain</syntaxhighlight>". | |||
<syntaxhighlight lang="aconf"> | |||
AddType text/plain .mediawiki | |||
# https://httpd.apache.org/docs/current/mod/mod_mime.html#addtype | |||
</syntaxhighlight> | |||
== character encoding == | |||
Unicode special characters encoded as Eight-Bit Unicode Transformation Format (UTF-8) in plaintext (<code>.txt</code>) and "<code>.mediawiki</code>" files will not display correctly in the browser unless the character set (charset) encoding is manually set for these filetypes.  You should set the charset for each filetype individually and should not use "<syntaxhighlight lang="aconf" inline="inline">AddDefaultCharset</syntaxhighlight>". | |||
<syntaxhighlight lang="aconf"> | |||
AddCharset UTF-8 .mediawiki .txt | |||
# https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset | |||
</syntaxhighlight> | |||
== automatic indexing == | |||
# [https://httpd.apache.org/docs/current/mod/mod_autoindex.html <cite>ASF HTTP Server Project Documentation</cite>: "Automatic Index Module"] | |||
# <u class="plainlinks">[[computer file icons|<cite>NikkiWiki</cite>: "Computer File Icons"]]</u> | |||
"<code>FancyIndexing</code>" must be enabled <em>before</em> adding icons.  "<code>IconsAreLinks</code>" can only be enabled <em>after</em> the icons are added. | |||
<syntaxhighlight lang="aconf"> | |||
IndexOptions Charset=UTF-8 +FancyIndexing NameWidth=* | |||
DefaultIcon /images/icons/filetypes/000.svg | |||
AddIcon /images/icons/filetypes/zzz.svg ^^DIRECTORY^^ | |||
AddIcon /images/icons/filetypes/7z0.svg .7z | |||
AddIcon /images/icons/filetypes/css.svg .css | |||
AddIcon /images/icons/filetypes/htm.svg .htm .html | |||
AddIcon /images/icons/filetypes/ico.svg .ico | |||
AddIcon /images/icons/filetypes/med.svg .mediawiki | |||
AddIcon /images/icons/filetypes/png.svg .png | |||
AddIcon /images/icons/filetypes/svg.svg .svg | |||
AddIcon /images/icons/filetypes/txt.svg .txt | |||
IndexOptions +IconsAreLinks | |||
ReadmeName /footer.htm | |||
# https://httpd.apache.org/docs/current/mod/mod_autoindex.html | |||
</syntaxhighlight> | |||
== index footers == | |||
You can use either "<code>footer.txt</code>" or "<code>footer.htm</code>" to add content to the bottom of each automatically generated indexpage.  "<code>footer.htm</code>" here is not a webpage or a valid Hypertext Markup Language (HTML) document: it is just a code snippet to be inserted before the closing <syntaxhighlight lang="html" inline="inline"></body></syntaxhighlight> tag.  You should <em>not</em> have a "<code>!DOCTYPE</code>", "<code>html</code>" element, or a "<code>body</code>" element in the "<code>footer.htm</code>" file. | |||
Since this hypertext will appear frequently on many different pages, you should not use redirecting links.  In the example below, this means using the full "<kbd>/wiki/Creative_Commons_Attribution-ShareAlike_4.0_International_Public_License</kbd>" and not the shorter "<kbd>/wiki/CC_BY-SA</kbd>".  Avoiding wikiredirects here should reduce server load. | |||
"<code>footer.htm</code>" must be validated for HTML 3.2.  This means that you should not use an HTML 5 "<code>footer</code>" element in the "<code>footer.htm</code>" file.  Use the [https://validator.w3.org/ Worldwide Web Consortium (W3C) Markup Validation Service] to check for any disallowed elements or attributes.  Select "Validate by Direct Input" and then select "Use Doctype HTML 3.2" under "Validate Full Document".  W3C Validator returns an error if you try to use Extensible HTML (XHTML) syntax for self-closing tags such as "<syntaxhighlight lang="html" inline="inline"><br /></syntaxhighlight>" instead of "<syntaxhighlight lang="html" inline="inline"><br></syntaxhighlight>" for HTML 3.2.  DreamHost shared webhosting does not support "<syntaxhighlight lang="aconf" inline="inline">IndexOptions +FancyIndexing +XHTML</syntaxhighlight>" for ASF HTACCESS. | |||
Remember to add a blank line at the end of "<code>footer.htm</code>" to create a linebreak before "<syntaxhighlight lang="html" inline="inline"></body></syntaxhighlight>" when the HTML is inserted.  This is not necessary for "<code>footer.txt</code>". | |||
=== HTML footer === | |||
HTACCESS HTML footer for <cite>Nicole Sharp’s Website</cite>. | |||
<syntaxhighlight lang="html"> | |||
<p>© (Copyright) 2026 <a href="/wiki/Nicole_Sharp">Nicole Sharp</a> (NicoleSharp.net).</p> | |||
<p>Unless otherwise noted, content on this site is available under the <cite><a rel="copyright" href="/wiki/Creative_Commons_Attribution-ShareAlike_4.0_International_Public_License">Creative Commons Attribution-ShareAlike 4.0 International Public License</a> (CC BY-SA 4.0)</cite>.</p> | |||
<p><strong><a rel="home index" href="/wiki/NikkiWiki">Return to the homepage for <cite>Nicole Sharp’s Website</cite>.</a></strong></p> | |||
</syntaxhighlight> | |||
=== text footer === | |||
== HTACCESS for <cite>Nicole Sharp’s Website</cite> = | HTACCESS text footer for <cite>Nicole Sharp’s Website</cite>. | ||
<syntaxhighlight lang="text"> | |||
© (Copyright) 2026 Nicole Sharp. | |||
https://www.nicolesharp.net/ | |||
Unless otherwise noted, content on Nicole Sharp’s Website is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License. | |||
https://www.nicolesharp.net/wiki/CC_BY-SA | |||
</syntaxhighlight> | |||
== sample HTACCESS == | |||
HTACCESS for <cite>Nicole Sharp’s Website</cite>. | |||
<syntaxhighlight lang="aconf"> | |||
ErrorDocument 403 /ASF/403.htm | |||
ErrorDocument 404 /ASF/404.htm | |||
# https://httpd.apache.org/docs/current/custom-error.html | |||
RewriteEngine On | RewriteEngine On | ||
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] | RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] | ||
| Line 25: | Line 149: | ||
# https://www.mediawiki.org/wiki/Manual:Short_URL/Apache#Setting_up_the_rewrite_rules | # https://www.mediawiki.org/wiki/Manual:Short_URL/Apache#Setting_up_the_rewrite_rules | ||
AddType text/plain .mediawiki | |||
AddCharset UTF-8 .mediawiki .txt | |||
# https:// | # https://httpd.apache.org/docs/current/mod/mod_mime.html | ||
# https:// | IndexOptions Charset=UTF-8 +FancyIndexing NameWidth=* | ||
DefaultIcon /images/icons/filetypes/000.svg | |||
AddIcon /images/icons/filetypes/zzz.svg ^^DIRECTORY^^ | |||
AddIcon /images/icons/filetypes/7z0.svg .7z | |||
AddIcon /images/icons/filetypes/css.svg .css | |||
AddIcon /images/icons/filetypes/doc.svg .doc | |||
AddIcon /images/icons/filetypes/dox.svg .docx | |||
AddIcon /images/icons/filetypes/htm.svg .htm .html | |||
AddIcon /images/icons/filetypes/ico.svg .ico | |||
AddIcon /images/icons/filetypes/jpg.svg .jpg .jpeg | |||
AddIcon /images/icons/filetypes/med.svg .mediawiki | |||
AddIcon /images/icons/filetypes/mht.svg .mht .mhtml | |||
AddIcon /images/icons/filetypes/ods.svg .ods | |||
AddIcon /images/icons/filetypes/odt.svg .odt | |||
AddIcon /images/icons/filetypes/oxp.svg .oxps | |||
AddIcon /images/icons/filetypes/pdf.svg .pdf | |||
AddIcon /images/icons/filetypes/png.svg .png | |||
AddIcon /images/icons/filetypes/svg.svg .svg | |||
AddIcon /images/icons/filetypes/txt.svg .txt | |||
AddIcon /images/icons/filetypes/xht.svg .xht .xhtml | |||
AddIcon /images/icons/filetypes/xls.svg .xls | |||
AddIcon /images/icons/filetypes/xlx.svg .xlsx | |||
AddIcon /images/icons/filetypes/xml.svg .xml | |||
AddIcon /images/icons/filetypes/xps.svg .xps | |||
AddIcon /images/icons/filetypes/zip.svg .zip | |||
IndexOptions +IconsAreLinks | |||
ReadmeName /footer.htm | |||
# https://httpd.apache.org/docs/current/mod/mod_autoindex.html | |||
# ASF Hypertext Transfer Protocol Server Access (HTACCESS) for Nicole Sharp's Website: https://www.nicolesharp.net/ | |||
# Copyright (C) 2026-04-14 Nicole Sharp | |||
# Content in this file is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License: https://www.nicolesharp.net/wiki/CC_BY-SA | |||
# | # Please read the following statements from Natives in Tech and ASF (Apache Software Foundation) regarding use of the name "Apache": | ||
# https://web.archive.org/web/20241117093851/https://blog.nativesintech.org/apache-appropriation/ | |||
# https://news.apache.org/foundation/entry/evolving-the-asf-brand/ | |||
# https://news.apache.org/foundation/entry/introducing-the-asfs-new-logo/ | |||
</syntaxhighlight> | |||
[[category: | [[category:HTACCESS]] | ||
[[category:ACONF]] | |||
[[category:HTML]] | |||
Latest revision as of 2026-04-17T08:51:28
Documentation for configuring ASF (Apache Software Foundation) Hypertext Transfer Protocol (HTTP) Server Access (HTACCESS) files.
intro
There are no characters before the period in a ".htaccess" file. HTACCESS is ideally placed into the webroot at "/.htaccess". HTACCESS is written in plaintext.
- Wikipedia: "HTACCESS"
- DreamHost Knowledge Base: "HTACCESS Overview"
- DreamHost Knowledge Base: "What Can I Do with an HTACCESS File?"
- ASF HTTP Server Project Documentation: "HTACCESS Files"
redirects
- DreamHost Knowledge Base: "How Can I Redirect and Rewrite my Uniform Resource Locators (URLs) with an HTACCESS File?"
- ASF HTTP Server Project Documentation: "Alias Module"
- Wikipedia: "HTTP Status Codes"
- Mozilla Developer Network: "HTTP Response Status Codes"
- Internet Engineering Task Force (IETF) HTTP Working Group: "Internet Standard 97 (HTTP Semantics: Overview of Status Codes)"
If you want to temporarily redirect traffic to another site, use an HTTP 302 (not HTTP 301) redirect. HTTP 302 instructs searchbots to continue indexing the host domain and to check back later to see if the temporary redirect has ceased or changed.
Redirect 302 / https://nicolesharp.dreamhosters.com/ # https://httpd.apache.org/docs/current/mod/mod_alias.html#redirect # https://httpwg.org/specs/rfc9110.html#status.302
error pages
- DreamHost Knowledge Base: "Custom Error Pages"
- ASF HTTP Server Project Documentation: "Custom Error Responses"
- NikkiSite: "ASF"
- NikkiWiki: "403 (Forbidden)"
- NikkiWiki: "404 (Not Found)"
The default error pages for ASF HTTP Server are dead-end pages meaning there is no way to navigate back to the homepage if an error is encountered. You should set up custom error pages with a hyperlink back to the homepage to improve site navigation.
Custom error pages are best served as static Hypertext Markup Language (HTML) without redirecting to a Personal Homepage Hypertext Preprocessor (PHP) application like Wikimedia MediaWiki. This ensures that the error message will display even if PHP is not working.
You cannot customize the error pages for HTTP 400 or HTTP 500 errors on DreamHost shared webhosting.
ErrorDocument 403 /ASF/403.htm ErrorDocument 404 /ASF/404.htm # https://httpd.apache.org/docs/current/custom-error.html
MediaWiki shortlinks
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
# https://www.mediawiki.org/wiki/Manual:Short_URL/Apache#Setting_up_the_rewrite_rules
MEDIAWIKI files
MediaWiki source code saved as ".mediawiki" files will not display in the web browser unless you set the Multipurpose Internet Mail Extension (MIME) type for ".mediawiki" to "text/plain".
AddType text/plain .mediawiki # https://httpd.apache.org/docs/current/mod/mod_mime.html#addtype
character encoding
Unicode special characters encoded as Eight-Bit Unicode Transformation Format (UTF-8) in plaintext (.txt) and ".mediawiki" files will not display correctly in the browser unless the character set (charset) encoding is manually set for these filetypes. You should set the charset for each filetype individually and should not use "AddDefaultCharset".
AddCharset UTF-8 .mediawiki .txt # https://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset
automatic indexing
"FancyIndexing" must be enabled before adding icons. "IconsAreLinks" can only be enabled after the icons are added.
IndexOptions Charset=UTF-8 +FancyIndexing NameWidth=* DefaultIcon /images/icons/filetypes/000.svg AddIcon /images/icons/filetypes/zzz.svg ^^DIRECTORY^^ AddIcon /images/icons/filetypes/7z0.svg .7z AddIcon /images/icons/filetypes/css.svg .css AddIcon /images/icons/filetypes/htm.svg .htm .html AddIcon /images/icons/filetypes/ico.svg .ico AddIcon /images/icons/filetypes/med.svg .mediawiki AddIcon /images/icons/filetypes/png.svg .png AddIcon /images/icons/filetypes/svg.svg .svg AddIcon /images/icons/filetypes/txt.svg .txt IndexOptions +IconsAreLinks ReadmeName /footer.htm # https://httpd.apache.org/docs/current/mod/mod_autoindex.html
You can use either "footer.txt" or "footer.htm" to add content to the bottom of each automatically generated indexpage. "footer.htm" here is not a webpage or a valid Hypertext Markup Language (HTML) document: it is just a code snippet to be inserted before the closing </body> tag. You should not have a "!DOCTYPE", "html" element, or a "body" element in the "footer.htm" file.
Since this hypertext will appear frequently on many different pages, you should not use redirecting links. In the example below, this means using the full "/wiki/Creative_Commons_Attribution-ShareAlike_4.0_International_Public_License" and not the shorter "/wiki/CC_BY-SA". Avoiding wikiredirects here should reduce server load.
"footer.htm" must be validated for HTML 3.2. This means that you should not use an HTML 5 "footer" element in the "footer.htm" file. Use the Worldwide Web Consortium (W3C) Markup Validation Service to check for any disallowed elements or attributes. Select "Validate by Direct Input" and then select "Use Doctype HTML 3.2" under "Validate Full Document". W3C Validator returns an error if you try to use Extensible HTML (XHTML) syntax for self-closing tags such as "<br />" instead of "<br>" for HTML 3.2. DreamHost shared webhosting does not support "IndexOptions +FancyIndexing +XHTML" for ASF HTACCESS.
Remember to add a blank line at the end of "footer.htm" to create a linebreak before "</body>" when the HTML is inserted. This is not necessary for "footer.txt".
HTACCESS HTML footer for Nicole Sharp’s Website.
<p>© (Copyright) 2026 <a href="/wiki/Nicole_Sharp">Nicole Sharp</a> (NicoleSharp.net).</p> <p>Unless otherwise noted, content on this site is available under the <cite><a rel="copyright" href="/wiki/Creative_Commons_Attribution-ShareAlike_4.0_International_Public_License">Creative Commons Attribution-ShareAlike 4.0 International Public License</a> (CC BY-SA 4.0)</cite>.</p> <p><strong><a rel="home index" href="/wiki/NikkiWiki">Return to the homepage for <cite>Nicole Sharp’s Website</cite>.</a></strong></p>
HTACCESS text footer for Nicole Sharp’s Website.
© (Copyright) 2026 Nicole Sharp. https://www.nicolesharp.net/ Unless otherwise noted, content on Nicole Sharp’s Website is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License. https://www.nicolesharp.net/wiki/CC_BY-SA
sample HTACCESS
HTACCESS for Nicole Sharp’s Website.
ErrorDocument 403 /ASF/403.htm
ErrorDocument 404 /ASF/404.htm
# https://httpd.apache.org/docs/current/custom-error.html
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
# https://www.mediawiki.org/wiki/Manual:Short_URL/Apache#Setting_up_the_rewrite_rules
AddType text/plain .mediawiki
AddCharset UTF-8 .mediawiki .txt
# https://httpd.apache.org/docs/current/mod/mod_mime.html
IndexOptions Charset=UTF-8 +FancyIndexing NameWidth=*
DefaultIcon /images/icons/filetypes/000.svg
AddIcon /images/icons/filetypes/zzz.svg ^^DIRECTORY^^
AddIcon /images/icons/filetypes/7z0.svg .7z
AddIcon /images/icons/filetypes/css.svg .css
AddIcon /images/icons/filetypes/doc.svg .doc
AddIcon /images/icons/filetypes/dox.svg .docx
AddIcon /images/icons/filetypes/htm.svg .htm .html
AddIcon /images/icons/filetypes/ico.svg .ico
AddIcon /images/icons/filetypes/jpg.svg .jpg .jpeg
AddIcon /images/icons/filetypes/med.svg .mediawiki
AddIcon /images/icons/filetypes/mht.svg .mht .mhtml
AddIcon /images/icons/filetypes/ods.svg .ods
AddIcon /images/icons/filetypes/odt.svg .odt
AddIcon /images/icons/filetypes/oxp.svg .oxps
AddIcon /images/icons/filetypes/pdf.svg .pdf
AddIcon /images/icons/filetypes/png.svg .png
AddIcon /images/icons/filetypes/svg.svg .svg
AddIcon /images/icons/filetypes/txt.svg .txt
AddIcon /images/icons/filetypes/xht.svg .xht .xhtml
AddIcon /images/icons/filetypes/xls.svg .xls
AddIcon /images/icons/filetypes/xlx.svg .xlsx
AddIcon /images/icons/filetypes/xml.svg .xml
AddIcon /images/icons/filetypes/xps.svg .xps
AddIcon /images/icons/filetypes/zip.svg .zip
IndexOptions +IconsAreLinks
ReadmeName /footer.htm
# https://httpd.apache.org/docs/current/mod/mod_autoindex.html
# ASF Hypertext Transfer Protocol Server Access (HTACCESS) for Nicole Sharp's Website: https://www.nicolesharp.net/
# Copyright (C) 2026-04-14 Nicole Sharp
# Content in this file is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License: https://www.nicolesharp.net/wiki/CC_BY-SA
# Please read the following statements from Natives in Tech and ASF (Apache Software Foundation) regarding use of the name "Apache":
# https://web.archive.org/web/20241117093851/https://blog.nativesintech.org/apache-appropriation/
# https://news.apache.org/foundation/entry/evolving-the-asf-brand/
# https://news.apache.org/foundation/entry/introducing-the-asfs-new-logo/