• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved can I Speed up apache by not using .htaccess ?

Hotte

New Pleskian
Is it possible and sensefull to not use .htaccess and store the content of .htaccess in vhost ?

Doese that make sense and where should i paste my .htaccess stuff in Plesk?

thanks and regards from cologne
Hotte
 
THX,

Do i use http or https ?
I think i do rewrite to https in http everything else (also auth!) in https ?
or just the same content in each?

And is this already gaining performance (may be for ttfb?) or do i need to disable htaccess thein in apache conf ?
 
THX,

Do i use http or https ?
I think i do rewrite to https in http everything else (also auth!) in https ? or just the same content in each?

And is this already gaining performance (may be for ttfb?) or do i need to disable htaccess thein in apache conf ?

In "Apache & nginx Settings" —
If you put this in both Additional Apache directives HTTP and HTTPS sections:
<Directory /path/to/document/root/httpdocs>
AllowOverride None
</Directory>


And this in the Additional nginx directives section:
location ~ /\.ht {
deny all;
access_log off;
log_not_found off;
}
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}


You'll be well on the way. Apache will then avoid searching for any .htaccess files in your directory tree and will not read them if they exist, and Nginx will not allow people to read them. All you have to do is put all occurrences of directives you need from the .htaccess files into more <Directory> sections in the Additional Apache directives section to make it all work. Nginx will redirect all the HTTP to HTTPS requests before they even get to Apache. I run several WordPress sites without .htaccess enabled this way — you just have to be alert to the existence of new .htaccess files that are needed and write their contents into the <Directory> directives.
 
Back
Top