KnowledgeBase Glossary    Contact Us
Browse by Category 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/

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

You can find Apache 2.0 information on mod_rewrite at

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: 12973   
article Where are my Apache HTTP access logs?
Log files are found in the /logs directory for...

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

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

User Comments

No comments have been posted.

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