Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | Questions | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Internet > Web Servers > Apache > mod_rewrite and .htaccess     

mod_rewrite on Windows (overwrite URLs)


Can't get mod_rewrite (rewriting URLs) working on Windows? The solution is fairly simple. Make
sure you have the following in your httpd.conf. Replace "C:/www" with the directory under your
DocumentRoot where you placed .htaccess file. Once you've copied the lines below into Apache
configuration file restart web server and URL rewriting should work.

<Directory>
   Options FollowSymLinks
   AllowOverride None
</Directory>
<Directory "C:/www">
   Options Indexes Includes FollowSymLinks MultiViews
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

<Files ~ "^\.ht">
   Order allow,deny
   Deny from all
</Files>


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

     (Average: 4.96 / Votes: 23)   Rate this tip:    

  Support Forum  Posted by 
   Getting mod_rewrite working on Windows       h8dk97  

Start new discussion or add comment to this tip

  Details
Tip reference : #58
views : 3500
Added on : 11/28/05
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (162)
 
 
<< Previous Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com