How to Use Xtream.txt to Boost Your Website Performance
Xtream.txt is a simple text file that you can place in the root directory of your website to improve its speed, security and SEO. Xtream.txt allows you to specify various directives and parameters for your web server, such as caching, compression, redirection, authentication and more. In this article, we will show you how to create and use Xtream.txt to optimize your website performance.
What is Xtream.txt?
Xtream.txt is a text file that follows the same syntax and rules as robots.txt, which is a file that tells search engines how to crawl and index your website. Xtream.txt is not a standard protocol, but rather a custom solution developed by Xtream Web Services, a company that offers web hosting and optimization services. Xtream.txt is supported by Xtream’s web servers and CDN (content delivery network), which means that you need to host your website with Xtream or use their CDN service to benefit from Xtream.txt.
How to Create Xtream.txt?
Creating Xtream.txt is very easy. You just need to create a plain text file named xtream.txt and place it in the root directory of your website, such as www.example.com/xtream.txt. You can use any text editor to create and edit Xtream.txt, such as Notepad or Sublime Text. You can also use online tools such as Xtreamtxt.com to generate and validate your Xtream.txt file.
Xtream.txt consists of one or more lines, each containing a directive and a parameter separated by a colon (:). A directive is a keyword that tells the web server what action to perform, such as cache, compress, redirect or auth. A parameter is a value that specifies the details of the action, such as the file type, the expiration time, the destination URL or the password. You can use asterisks (*) as wildcards to match any character or string. You can also use comments (#) to add notes or explanations to your Xtream.txt file.
How to Use Xtream.txt?
Once you have created and uploaded your Xtream.txt file to your website’s root directory, you can start using it to optimize your website performance. Here are some examples of common directives and parameters that you can use in your Xtream.txt file:
Cache: *.jpg:1d Cache: *.css:1h Cache: *.html:10m
Compress: *.html Compress: *.css Compress: *.js
- Redirect: This directive allows you to redirect your website’s visitors from one URL to another URL. Redirects can be useful for SEO purposes, such as avoiding duplicate content or canonicalizing URLs. The parameter for this directive is the source URL and the destination URL separated by a comma (,). For example:
Redirect: /old-page.html,/new-page.html Redirect: /index.html,/home.html Redirect: /blog/*,/blog/
- Auth: This directive allows you to protect your website’s files or directories with a password. Auth can be useful for security purposes, such as restricting access to sensitive or private content. The parameter for this directive is the file or directory name and the password separated by a comma (,). For example: