How to setup rules and codes in .htaccess for all sites on a VPS?

BillEssley

WMS Marketplace Seller
Joined
Feb 19, 2013
Messages
195
Points
18
Are there any way(s) to implement .htaccess code for all sites in a VPS without adding to each site. I want to save my time, if you know please share your experience!
 

Developer

Active member
Joined
Dec 21, 2015
Messages
412
Points
43
If it's anything remotely close to a dedicated server, you should
be able to access the *.conf files to set some "server/vps wide"
rules. I have run many dedicated servers, but I've never used,
managed or run a VPS so as I said, IF it is the same concept,
you SHOULD be able to edit the configuration files.

If you find out that I am wrong (which is possible) please post
back so others will know as well.
 

Delimiter

New member
Joined
May 11, 2016
Messages
11
Points
0
Delimiter
Yep, you should be able to set directives in httpd.conf that will spread to others, unless you're using virtualhost tags.

If the OP is only running a few sites though, I'd recommend just creating an initial .htaccess 'template' (of sorts) and just copy/pasting it when you setup new virtual hosts.
 
Latest threads
Recommended threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top