htaccess

  1. V

    PHP Inheritance Logic & Recursive Checking?

    I'm trying to learn the basics about setting up PHP versions and how those are inherited in cPanel. But some things do not add up. Here are the places where you can define the PHP version: System (Global) Main Domain (located in public HTML folder) Addon Domains and Subdomains (can have their...
  2. M

    Redirects from htaccess shown in cPanel?

    Hello, have you seen that before - and could that actually happen? I am not 100% sure, but I added a ton of manual redirects into the .htaccess some time ago. Now I see those redirects in cPanel → Redirects I can't remember the details, but I am very sure I did not manually add them to...
  3. A

    Domain not take Content-Encoding: gzip from htaccess

    Hi. I have an issue with the Content-Encoding because in my htaccess file I have this: ## COMPRESS <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml...
  4. K

    In Progress CPANEL-42708 - Htaccess redirection appears on List Domains weirdly

    Hello, I noticed something weird which bothered me. I'd like your assistance to verify that i don't understand anything wrong. We make redirections through the .htaccess file on public_html. Nothing new, have been using it for many years. Had to create a new subdomain on cPanel -> Domains ->...
  5. M

    Allowing execution for some files while denying others using htaccess

    Greetings.. I’m searching for a way to allow the execution of some files ( php for example ) that are trusted using their specific names , while denying the others , that way i can make sure if there is any exploit this would help prevent its execution Is there a way to do this I searched for it...
  6. J

    cpanel error files unable to check htaccess file

    cpanel metrics/errors has many entries like: [Mon Dec 19 21:45:10.105420 2022] [core:crit] [pid 15337] (13)Permission denied: [client 51.104.221.111:56476] AH00529: /home/xxxxxxpublic_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that...
  7. M

    WordPress Toolkit dont create htaccess file

    The WordPress Toolkit dont generate the default .htaccess file on news installations. How fix this?
  8. F

    htaccess redirects not working properly

    I am trying to add htaccess 301 redirect to redirect my old site to new domain. After changing everything and updating the htaccess, only main site url is redirected and all other urls are unaffected. I want every urls to redirect to new domain. Example : olddomain.com > newdomain.com (Works)...
  9. baronn

    order deny allow 403 404 issues

    Hello, This has been an ongoing issue for quite some time now (nearly a year) and we have had cpanel support look into it with no success or resolution. Have been looking into it in between work now and then and not been able to find why this issue is happening. So hoping someone from the...
  10. Henry Aspden

    Litespeed .htaccess not working

    I have the following folder structure domain.com (/public_html/) sub.domain.com (/public_html/sub/) sub.domain.com/dir1/ (/public_html/sub/dir1/) sub.domain.com/dir1/dir2/ (/public_html/sub/dir1/dir2/) if I put the following in my .htaccess file at any of these directories DirectoryIndex...
  11. PCZero

    htaccess issues

    One of my clients is newly experiencing an ISE on site load. The error log for this site show this... [Sun Nov 28 17:49:41.927559 2021] [core:alert] [pid 12619] [client 73.147.96.99:56967] /home/USERNAME/public_html/.htaccess: Invalid command '\xef\xbb\xbfErrorDocument', perhaps misspelled or...
  12. W

    Auto htaccess adds .php7 .phtml

    Hi there, I understand the need to define the php handler in the htaccess but it also adds .php7 .phtml # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php73” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php73...
  13. 4

    mod_rewrite (not .htaccess) conf not loading

    Hi, Using cpanel v92.0.10, CENTOS 7.9. I’m having issues getting mod_rewrite to load my .conf. Can anyone please help me figure out how to debug this further to see where the issue is? rewrite is enabled on apache2. The Include related to loading .conf...
  14. S

    Cant delete infected htaccess file

    Hi all, I have a web hosting shared server and while i was scanning the users for any infected file using imunifyAV i noticed one htaccess file is infected. I tried deleting this file but when i rescan this user i see that this file exist yet, even though it was deleted before. It seem like it...
  15. O

    htaccess file is wiped out after running pkgacct

    I am running a custom script for the backup schedule and transportation but the backup is handled by /scripts/pkgacct. I am having strange error that every time the schedule backup has ran, the htaccess file of a lo of sites are emptied. They all became 0kb. So I went ahead to check...
  16. J

    default install "do not edit" cpanel htaccess conflicts with phplist operations

    Hello and safe travels for everyone! I have a standard phplist install which by default installs into a /lists directory beneath the domain root. It works fine except for one feature which always gives a: Forbidden You don't have permission to access this resource. Additionally, a 403...
  17. G

    Using include files instead of htaccess

    I'm looking at the documentation, and have questions: https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files I have an extensive .htaccess file on one of my sites, and I'd like to move it here to improve load time and for security. My first question is...
  18. durangod

    Using Redirect in htaccess

    Hi, i thought i would try to learn how to use redirect in htaccess but its not going well at all. Here is what i have so far... i know its wrong just not sure where.. The trick is if i can learn to get it to redirect with it on, then i think all i have to do is add the ! symbol like this to...
  19. T

    php_flag opcache.enable Off in Htaccess

    Hello, We are running a magento 2.3.3 site on a dedicated server. we recently were running a recompile and out of the blue had some strange ash output, shortly after all our pages on our site except our homepage Yhad a 404 error. We checked the htaccess file in the root folder and compared...
  20. N

    Remove addhandler from htaccess

    Hello how can i remove auto add Handler to htaccess? i use cloudlinux every time i have to switch php version on php selector, i need to override this, or if it not possible to change it to 7.2 <IfModule mime_module> AddHandler application/x-httpd-ea-php70 .php .php7 .phtml </IfModule>