pcigre
Verified User
I currently have situation like this on my Apache 2 + DA powered vps:
One site has 7700 lines in .htaccess filled with 301 redirects with 850KB in total. As .htaccess is loaded on every request that make some load on my VPS. I would like to move those redirects into httpd.conf so its load only on apache restarts.
What and how should I do? Please have in mind I'm total noob in server administration.
Should I edit /usr/local/directadmin/data/users/someuser/httpd.conf
or
/etc/httpd/conf/httpd.conf
And how? Copy lines from .htaccess? Do I need to modify lines and where to copy?
Thanks in advance to all that'll try to help.
One site has 7700 lines in .htaccess filled with 301 redirects with 850KB in total. As .htaccess is loaded on every request that make some load on my VPS. I would like to move those redirects into httpd.conf so its load only on apache restarts.
What and how should I do? Please have in mind I'm total noob in server administration.
Should I edit /usr/local/directadmin/data/users/someuser/httpd.conf
or
/etc/httpd/conf/httpd.conf
And how? Copy lines from .htaccess? Do I need to modify lines and where to copy?
Thanks in advance to all that'll try to help.