htaccess.txt to .htaccess plain text backend - Forum | JoomShaper
Staff replied SP Page Builder

htaccess.txt to .htaccess plain text backend

Asked by Cristina 3 months ago Last activity 3 months ago

Hi there,

I need help since the last update our website has been hacked and we have managed to get it working again, yet when we update to htacces.txt to .htacces the backend shows as plain text. I need help please bc i dont know what else to do and the website needs to be safe.

Thanks in advance,

Cristina

3 replies

Paul Frankowski Senior Staff
3 months ago · edited

Hi Cristina.

As I remember it was a old problem (2 years old, started with J4) with double compression.

You have two ways to fix it:

  1. Edit .htaccess file
  2. Or, edit configuration.php file
Paul Frankowski Senior Staff
3 months ago · edited

If you will try method (1)

delete all content that is below ### GZIP & BROTLI between < IfModule .... < / IfModule>

del9.png


If method (2) find line:

public $gzip = true;

and change from "true;" to "false;" , then save changes.

Try (2) first. Then reload site (admin area), if will not help (1).


In general it's not SPPB or Helix releated, but Joomla question.

Paul Frankowski Senior Staff
3 months ago · edited

what else to do and the website needs to be safe.

To be honest, it's topic for whole ebook/book, not forum topic. Sorry for the brief reply.

  1. Many suggestions/tips you will find here: https://www.joomshaper.com/forum/question/45152
  2. Install Firewall component
  3. Secure folders that do not have php files (/images, /files, /media) with extra .htaccess
  4. Ask hosting company for regular malware scanning (every 2-3 days at least).
  5. Block some IPs that shouldn't visit your site(s), whole regions as well.
  6. Every extra, even small step may reduce risk.
Log in to reply.