Public html files- what should I remove

Hello, I used to have Wordpress site, than I moved to Divhunt, What should be removed from my public html files etc ?

1.Should i remove all WP files/folders?
2.Do i need robo.txt file in server options when I have it in divhunt?

3.What else should i look for to remove it, so it doesn’t ad unnecessary cod to the server?

When you connect your DNS A record to Divhunt, our server is serving files for you, not that server you screenshoted?

But in case you are exporting code from Divhunt, then I guess, you could remove everything from wordpress, and just leave our files there.

Ok, does that mean when I edit .htaccess in my server, it doesn’t do anything? How can i interact it(when its on your server site) ? What if i wanted to add code to .htaccess?

You cant edit htaccess or any backend file when hosting with us

Sorry for stupid question but What should i do to have my own hosting in divhunt builder?

I guess, you can export files and host them on your hosting, but with that aproach, you will loose CMS, REST API, SPA, and some more functionalities that depepnd on Divhunt backend and server in order to work.

Ok, not planing to move from divhunt :slight_smile:

Recently, I did some research on improving website speed, and I have a question: Does the htaccess on your server support the following elements below?(used speed tests , chat gpt, and seo saas to get information- how to improve speed of my site. I’m complete noob and wanted to get some infos :slight_smile: )

  1. mod_expires.c module: Controls caching behavior for various file types by setting expiration times.
  • ExpiresActive On: Activates the expiration control.
  • ExpiresDefault "access plus 1 month": Default expiration for unspecified file types.
  • File type-specific expiration times:
    • Images (jpg, jpeg, gif, png, svg+xml): 1 year.
    • CSS and JavaScript files (text/css, text/javascript, application/javascript): 1 month.
    • Fonts (ttf, woff, woff2): 1 year.
    • Documents (pdf, msword): 1 month.
  1. LiteSpeed directives:
  • SetEnv noabort 1: Ensures that PHP scripts continue running even if the user cancels the request.
  1. mod_deflate.c module: Manages compression of file types to reduce the size of responses.
  • Browser compatibility: Ensures certain older browsers handle compression properly.
    • BrowserMatch ^Mozilla/4 gzip-only-text/html: Compresses only HTML for older Mozilla browsers.
    • BrowserMatch ^Mozilla/4\.0[678] no-gzip: Disables gzip for older versions of Mozilla.
    • BrowserMatch \bMSIE !no-gzip !gzip-only-text/html: Excludes certain versions of Internet Explorer from gzip compression.
  • Vary Header: Header append Vary User-Agent ensures different content is served depending on the user’s browser.
  • Compression types:
    • text/plain, text/html, text/xml, text/css, text/javascript, application/xml, application/rss+xml, application/javascript, application/json, font/opentype, font/ttf, image/svg+xml, image/x-icon: Specifies file types to be compressed.
  • Compression level: DeflateCompressionLevel 6 sets the compression strength.
  1. mod_headers.c module: Adds security-related HTTP headers to improve security.
  • X-Content-Type-Options "nosniff": Prevents browsers from guessing MIME types.
  • X-Frame-Options "DENY": Prevents the page from being embedded in an iframe, protecting against clickjacking attacks.
  • X-XSS-Protection "1; mode=block": Enables cross-site scripting (XSS) protection.
  • Referrer-Policy "no-referrer-when-downgrade": Controls what referrer information is sent with requests.
  • X-Frame-Options SAMEORIGIN: Allows the site to be embedded only in iframes on the same origin.
  1. mod_rewrite.c module: Handles HTTP-to-HTTPS redirection if SSL is in use.
  • RewriteEngine On: Enables the rewriting engine.
  • RewriteCond %{HTTPS} off: Checks if HTTPS is off.
  • RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]: Redirects to HTTPS if the condition is met.
  1. FilesMatch directive: Protects access to specific sensitive files by denying access to them.
  • Require all denied: Denies access to configuration files such as .htaccess, .htpasswd, .ini, .log, .sh, and .config.

Speed is being handled by us, there’s no need for you to worry about speed. Caching, cdn, and other things are being taken care of :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.