Htaccess: Introduction: Difference between revisions

Moved to new category; Additional grammar and cleanup edits.
(Punctuation and grammatical changes; some clarification.)
(Moved to new category; Additional grammar and cleanup edits.)
Line 2: Line 2:
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
{|  
{|  
|[[Image:uc_small_logo.gif | MPG UniCenter]] ||
 
.htaccess:  
.htaccess:  
[[Htaccess: Introduction | Introduction]] |   
[[Htaccess: Introduction | Introduction]] |   
Line 26: Line 26:


== Create the file ==
== Create the file ==
The easiest way to create the '''.htaccess''' file is just to copy an existing one into its new location and edit its content. The problem in creating a new file from scratch is that most windows text editors (Windows Notepad is no exception ) will insist on adding a dot txt extension so the file looks like this .htaccess.txt . Even when trying to rename this file, Windows will insist on a "proper" file name.
The easiest way to create the '''.htaccess''' file is just to copy an existing one into its new location and edit its content. The problem in creating a new file from scratch is that most Windows text editors (Windows Notepad is no exception) will insist on adding a dot txt extension so the file looks like this .htaccess.txt . Even when trying to rename this file, Windows will insist on a "proper" file name.


'''''Note'':''' Most commands in .htaccess are meant to be placed on a '''single line''' only.  
'''''Note'':''' Most commands in .htaccess are meant to be placed on a '''single line''' only.  
Line 41: Line 41:


== What can you do with it? ==
== What can you do with it? ==
The Uniform Server places no restrictions on what can be contained in the .htaccess file. Since the file is interpreted by Apache, examples found on the Internet or from textbooks should work. I have included a few to get you started.
The Uniform Server places no restrictions on what can be contained in the .htaccess file. Since the file is interpreted by Apache, examples found on the Internet or from textbooks should work.
    
    
----
----


[[Category: Support]]
[[Category: Apache Configuration]]
[[Category: Troubleshooting ]]
[[Category: Application]]
[[Category: Development]]