SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Virtuozzo and OpenVz Based Accounts .: How can I add Apache rewrite rules?

How can I add Apache rewrite rules?

The apache module mod_rewrite is compiled by default into the SW-Soft Linux Apache installations. You can see this by the following line in the Apache configuration file in /etc/httpd/conf/httpd.conf :

LoadModule rewrite_module modules/mod_rewrite.so

By default the rewrite engine is off. You can turn the rewrite engine on by placing the following command in a .htaccess file that you place in the root directory for your site:

RewriteEngine On

You then can place the rewrite rules you wish to add for the site in the same .htaccess file.

You can find Apache 1.3 information on mod_rewrite at http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html.

You can find Apache 2.0 information on mod_rewrite at http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html.


How helpful was this article to you?

Related Articles

article My websites stop responding, even though the server is up and Apache is running.
It is likely that the issue could be resolved...

  1-11-2006    Views: 9053   
article Where are my Apache HTTP access logs?
Log files are found in the /logs directory for...

  7-21-2005    Views: 6168   
article What is the KeepAlive directive?
The KeepAlive directive allows multiple...

(No rating)  3-30-2006    Views: 3520   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted