Adding rewrite rules to Apache conf file in DirectAdmin

microkid

New member
Joined
Dec 5, 2009
Messages
2
Hi,

I'm trying to add a bunch of rewrite rules for a particular domain to the apache httpd.conf file. There are too many rewrite rules to place them in an .htaccess file because it would be too heavy on the server for each page load.

What would be the best way to do this? Thanks in advance!
 
Add them to the user level httpd.conf file; you do that from the main admin login.

If it's not your server you need to contact your hosting company.

Jeff
 
Thanks, that worked. Took me a while to figure out I had to add <Directory></Directory> as well:

Code:
<Directory /home/foo/domains/example.com/public_html>

# My rewrite rules

</Directory>
 
Back
Top