Articles

301 Redirect
Updated 2026 Quick Answer A 301 redirect permanently sends visitors and search engines from an old URL to a new one. Add this to your .htaccess...
Complete Guide to htaccess on Apache
htaccess & Redirects | Updated 2026 The .htaccess file is one of the most powerful tools available on your hosting account. It controls how Apache...
Create a 410 Redirect for Missing Files
htaccess & Redirects | Updated 2026 A 410 (Gone) status code tells search engines that a page has been permanently removed and should be...
Disable error_log via htaccess
htaccess & Redirects | Updated 2026 The error_log file in your public_html directory captures PHP errors. If it is growing large or you want to...
How to Create a Temporary 302 Redirect via htaccess
htaccess & Redirects | Updated March 2026 A 302 redirect sends visitors (and search engines) to a different URL temporarily. Unlike a 301...
htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
htaccess & Redirects | Updated March 2026 The "pcfg_openfile: unable to check htaccess file, ensure it is readable" error means Apache cannot...
htaccess referral redirect
htaccess & Redirects | Updated 2026 You can use .htaccess to redirect visitors based on the referring URL (the page they came from). This is...
Nginx and htaccess Redirect Issues
htaccess & Redirects | Updated March 2026 If your .htaccess redirects aren't working for specific directories, or a folder keeps redirecting to...
Redirect http to https and www
Updated 2026 Quick Answer To redirect HTTP to HTTPS and non-www to www (or vice versa), add this to your .htaccess file:RewriteEngine On...
Redirecting non-www to www with htaccess
htaccess & Redirects | Updated 2026 Choosing between www and non-www for your domain is a personal preference, but you should pick one and...
Show longer file names in directory/folder index
Updated 2026 Quick Answer To show longer file names in Apache's directory listing (mod_autoindex), add this to your .htaccess:IndexOptions...
What are all these htaccess files?
Article Updated This article has been consolidated Everything about .htaccess files is in our complete .htaccess guide. Short answer: .htaccess...
What are these htaccess files that keep popping up?
htaccess & Redirects | Updated 2026 If you keep finding .htaccess files appearing in your directories that you did not create, they are being...
When I Upload an htaccess File It Disappears
htaccess & Redirects | Updated March 2026 Your .htaccess file is there. You just can't see it. Files that start with a dot (.) are hidden files...