• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

htaccess

  1. SlimDeluxe

    Resolved Not seeing X-Robots-Tag from .htaccess

    Hi, I have the following in .htaccess: <Files ~ "\.pdf$"> Header set X-Robots-Tag "noindex, nofollow" </Files> This works fine in local development. I can see the header. However, when in production, the header is not there. Please see attached image. What is the reason behind this and how...
  2. T

    Issue Host settings and htaccess behavior in nginx proxy mode

    Hi Everyone, I'm facing a problem since few days, that i don't understand why. Thys case is on one dedicated server with ubuntu 20.04 LTS with Obsidian 18.0.52 128G of RAM and Intel(R) Xeon(R) CPU E5-1660 v4 @ 3.20GHz (16 core(s)) The first point is I'm working on my TTFB which have an average...
  3. A

    Issue .htaccess not working

    No matter what I do, the htaccess will not work. I'm trying to configure rewrite rules and it absolutely doesn't work, it's like it's not recognizing anything I put in the htaccess I tried adding code so all .php extensions on my site are hidden in the URL and it ignores it completely...
  4. J

    Issue "Header set" in .htaccess not working with "Smart static files processing" enabled

    I want to add a HTTP header to images in a certain directory. However when adding Header set test 1 to .htaccess in the directory, the the header isn't added to the files. Only after disabling "Smart static files processing" the header shows up. I could just leave it disabled, but Plesk...
  5. T

    Question IP Whitelist or Password

    Hi, Is it possible that we secure the sub-/domains via "protected directories" or via the IP? So that you either communicate from a certain IP or have to enter a user/password? (Without using custom .htaccess and .htpasswd!) greetings
  6. P

    Issue [Plesk Obsidian] Internal redirects are now public?

    Hi there, Since we have updated plesk to obsidian, internal redirects (specified by .htaccess file) are public redirects: https://example.com/en/home -> https :// example.com/?q=en/home The browser of the user actually gets redirected by an internal redirect... Are internal redirects...
  7. T

    Issue PHP Scripts called from Alias not parsing

    I've some problems with htaccess's attributes named Alias and RewriteRule. This script was added in additional instructions for http/s on my vhost example1.com: RewriteEngine On RewriteRule ^/Microsoft-Server-ActiveSync /usr/share/psa-horde/rpc.php [L,QSA] ... Alias /testme-int...
  8. Giuseppe

    Issue Rewrite rule not work in htaccess

    Hi guys, i migrate a server from cpanel in Plesk, inc panel no issue, in plesk with same htaccess files website not working. The object of my rules is: https://www.surflanguage.com/it/index.php -> Surf Language on every page. The htaccess configuration is: # RewriteOptions inherit...
  9. FAB

    Question Scheduled Task - Fetch PHP page under htaccess protection

    Hi, Quick question,: I'm trying to set a cron task (Scheduled Task in Plesk) to fetch a PHP page in a folder protected by .htaccess/.htpasswd. Is there a way to do that? Thanks! FAB
  10. R

    Resolved htaccess not word

    .htaccess not work
  11. Denver Prophit Jr.

    Input Github Custom Template Files For PrestaShop

    I've setup a repo on GitHub for all custom templates. I have an issue for SSL Stapling at the moment. Would anyone like to fork and contribute PRs for mostly SSL security at the moment? plesk-nginx-prestashop/opt/psa/admin/conf/templates/custom at plesk · denverprophitjr/plesk-nginx-prestashop ·...
  12. bsssrl

    Question Where to set AllowOverride for virtualhost

    OS: Ubuntu 14.04.5 LTS Plesk version: 12.0.18 Update #99 Apache version: Apache/2.4.7 I need to set .htaccess in a specific folder in order to set Access-Control-Allow-Origin. This .htaccess is ignored. So I've to AllowOverride in apache configuration. I tried in /etc/apache2/apache2.conf...
  13. abouk

    Issue Ngnix + htaccess + Plesk

    Hello, I am a new user of Plesk. I use Plesk Onyx Web Admin in one server and Plesk Onyx Web Pro in another server. I used to work with cPanel/WHM for years and switched to Plesk last 2 months. Most of the web sites needs htaccess and I my first experience with Ngnix is with plesk. So I found...
  14. A

    Issue .htaccess file does not apply if domain configured to use php-fpm, served by Apache

    Ubuntu 14.04.4 LTS‬ 12.5.30 Update #40 Apache Webserver,Service Reverse-Proxy-Server (nginx) not running When setting a domain to use php 5.6.24 to execute as fpm htaccess files are ignored. Setting php to execute as fastcgi everything is working as expected. I read...
  15. R

    Domian Alias and htaccess file

    Hi there. I'm actually creating a multi-store using magento but the part I'm trying to sort is directly related to Plesk 12. What I have done is created a domain alias e.g.domain2.co.uk of a primary domain e.g.domain1.co.uk In domain1.co.uk httpdocs folder I have a htaccess file which does...
  16. P

    How can i disable htaccess in plesk?

    Hi I have a plesk 12.5 on CentOS 6.7 (Final) I am using Plesk Panel Is posible to disable all htaccess files in a domain and configure all the "htaccess rules" ONLY from Additional Apache directives and Additional directives for HTTPS of this domain for security? it is advisable do that...
  17. gennolo

    Enabling php-fpm + nginx and link rewrite

    I recently switched some customer domains from php-cgi (apache served) to php-fpm (nginx served with apache as reverse proxy using the plesk-php56 package). Everything went flawlessly and I had a great boost of performance - but I have an issue with url rewriting that is driving me crazy. I...
  18. P

    htaccess rewrite rules are not executed on some urls with php-fpm

    Imagine a htaccess file like this: RewriteEngine on RewriteRule !^proxy/index.php$ index.php [L] And index.php is the only php file in the directory proxy. Now all urls like proxy/.. should be rewritten to index.php. This does not work for urls like proxy/foo.php (404 file not found). It works...
  19. onycro

    Horde Webmail IfModule not allowed here

    Hello there forum users, I am operating a plesk 12 on ubuntu 14. I configured plesk to use horde as webmailservice. But currently there is an issue with the .htaccess file. This is what /var/log/apache2/error.log says: /usr/share/psa-horde/.htaccess: <IfModule not allowed here My question is...
Back
Top