Guides tagged “htaccess”
Step-by-step MdmHost guides about htaccess, sorted A-Z.
39 guides · page 2 of 2
Hotlink protection in Nginx and Apache: stop bandwidth theft
Stop other websites embedding your images and files: how hotlinking works, valid_referers in Nginx, mod_rewrite rules in Apache and .htaccess, allowing search engines and social sites, and testing.
How to fix 403 Forbidden errors in Apache
Fix Apache 403 Forbidden errors by checking Require rules, file permissions, a missing index file,.htaccess deny rules and SELinux labels, one cause at a time.
How to fix 500 Internal Server Error on Apache
Track down an Apache 500 Internal Server Error by reading error.log, then fix bad.htaccess directives, missing modules, PHP fatal errors and permission problems.
How to fix a 405 Method Not Allowed error
A 405 Method Not Allowed error means the server rejects the HTTP method used, such as POST or PUT. Learn the causes on hosting and how to fix forms, APIs and rewrites.
How to make.htaccess rewrites work in OpenLiteSpeed
Fix.htaccess rewrites in OpenLiteSpeed - turn on rewrite and Auto Load from.htaccess, understand why edits need a restart and which directives are supported, and fix 404 errors on WordPress permalinks.
How to migrate a website from Apache to Nginx
Move a site from Apache to Nginx with low downtime - convert virtual hosts and.htaccess rewrites, set up PHP-FPM, reuse SSL certificates, test on a spare port, then switch.
LiteSpeed Enterprise vs OpenLiteSpeed: differences that matter
Compare LiteSpeed Enterprise and OpenLiteSpeed: .htaccess support, control panel integration, configuration style, LSCache, licensing and which one fits shared hosting or a VPS.
Manage 301 redirects in WordPress
Redirect old WordPress URLs correctly: when to use 301 or 302, redirect plugins, .htaccess rules and cPanel Redirects, monitoring 404s and avoiding chains and loops.
MIME types and Apache handlers in cPanel: serve files correctly
Fix files that download instead of opening, or show as text, by adding MIME types and Apache handlers in cPanel, and learn the safe way to run PHP in .html files.
Nginx 301 redirects and rewrite rules explained
Learn when to use return and when to use rewrite in Nginx, then redirect single pages, whole folders and old domains, and convert common.htaccess rules.
Password-protect a folder with cPanel Directory Privacy
Add a username and password prompt to any folder of your website with cPanel Directory Privacy, ideal for staging sites, wp-admin or private downloads.
Redirect www and non-www to one HTTPS address
Make every version of your domain land on one canonical HTTPS address: certificate coverage for both names, .htaccess rules, WordPress settings and testing all four variants.
Run Nginx in front of Apache: the hybrid reverse proxy setup
Put Nginx on ports 80/443 to handle TLS, static files and slow clients while Apache on 8080 keeps .htaccess support for PHP apps. Config, real IP forwarding and when this is worth it.
Set up 301 and 302 redirects in cPanel
Create permanent 301 and temporary 302 redirects in cPanel Redirects: whole domains, single pages, www handling and wildcard redirects, plus how to remove them.
Set up redirects and custom error pages in DirectAdmin
Create 301 and 302 redirects with DirectAdmin Site Redirection, write .htaccess rewrite rules, and add custom 404, 403 and 500 error pages for your domains.
Set up redirects in Plesk with .htaccess or nginx directives
Create 301 redirects, force HTTPS and www, and add custom Apache and nginx directives in Plesk, with ready-to-use examples and how to avoid redirect loops.
Troubleshoot .htaccess problems: 500 errors, loops and ignored rules
Find and fix broken .htaccess files on cPanel and LiteSpeed hosting: syntax 500 errors, redirect loops, rules that do nothing and conflicts between plugins.
Turn directory listing on or off with cPanel Indexes
Control whether visitors can see a list of files in folders without an index page, using cPanel Indexes or .htaccess, to share downloads or hide sensitive files.
Use LiteSpeed Cache on any PHP site with .htaccess rules
Cache pages of a custom PHP site or an app without an LSCache plugin using LiteSpeed rewrite rules in .htaccess, with safe exclusions for logged-in users and carts.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.83 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.67 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.53 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.49 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.67 guides
- DomainsRegistering, transferring and managing domains and nameservers.27 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.41 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.35 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.24 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.24 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.28 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.44 guides
- PleskWebsites, email, databases and settings in the Plesk panel.53 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.41 guides
- WHMCSBilling, automation, products and client management with WHMCS.52 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.107 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.138 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.72 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.83 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.80 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.127 guides
- Linux VPSSSH, packages, services and everyday Linux administration.265 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.73 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.82 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
