Htaccess: Site error documents: Difference between revisions

no edit summary
(Punctuation and grammatical changes; some clarification.)
No edit summary
Line 20: Line 20:
'''Site error documents'''
'''Site error documents'''


Apache provides some bland error documents however you are not restricted to using these you can provide your own and match them to your sites look.
Apache provides some bland error documents, but you are not restricted to using just these. You can provide your own and match them to your site's look.


== What errors produce what ==
== What errors produce what ==
Line 100: Line 100:
# Create a new folder in www named '''errors'''.
# Create a new folder in www named '''errors'''.
# In this folder create a file named '''not_found.html''' 
# In this folder create a file named '''not_found.html''' 
# Add the code shown on the right to it.
# Add the code shown on the right.
# Save the file
# Save the file.
|
|
<pre style="padding:4px;margin:0;border:none">
<pre style="padding:4px;margin:0;border:none">
Line 120: Line 120:
|
|
# Navigate to the root folder '''www'''.  
# Navigate to the root folder '''www'''.  
# Open the '''.htaccess''' file
# Open the '''.htaccess''' file.
# Add the command shown on the right last line.   
# Add the command shown on the right last line.   
# Save the file
# Save the file.
|
|
<pre style="padding:4px;margin:0;border:none">
<pre style="padding:4px;margin:0;border:none">