Skip to content
Are you looking for a fast and secure hosting plan with 24/7 Technical Support? Contact us today for a free trial account.
plothost logo
  • HOME
  • SHARED HOSTING
  • RESELLER HOSTING
  • SUPPORT
  • KNOWLEDGE BASE
  • CONTACT
Menu Close
  • HOME
  • SHARED HOSTING
  • RESELLER HOSTING
  • SUPPORT
  • KNOWLEDGE BASE
  • CONTACT
Search this website
htaccess
  1. Home>>
  2. KB>>
  3. htaccess>>
  4. htaccess

Redirect all URLs to another domain with .htaccess

  • Post author:Editorial Staff
  • Post published:February 4, 2020
  • Post category:Server
  • Post comments:1 Comment

You changed your domain name and you want to redirect all requests to the new domain? You can create such a redirect by adding a few lines in the site's .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST}…

Continue ReadingRedirect all URLs to another domain with .htaccess

Block site access on specific days and hours

  • Post author:Editorial Staff
  • Post published:January 29, 2020
  • Post category:Linux
  • Post comments:0 Comments

Do you want to block access to your site outside of working hours or on specific days? We'll show you how to accomplish this. To prevent access on specific days of the week, use: # prevent access on specific days…

Continue ReadingBlock site access on specific days and hours

Maintenance mode via .htaccess

  • Post author:Editorial Staff
  • Post published:January 14, 2020
  • Post category:Server
  • Post comments:1 Comment

Many times we are asked by our clients how to put the site offline but still be able to work on it. We will show in this article how to set a "maintenance mode"/ "down for maintenance" page. WordPress users…

Continue ReadingMaintenance mode via .htaccess

How to set up a redirect for your website in cPanel

  • Post author:Editorial Staff
  • Post published:April 22, 2017
  • Post category:cPanel
  • Post comments:0 Comments

Did you move your site to a new domain? Do you want to redirect access to a removed folder to the main page? the cPanel Redirect allows you to set such redirects. To setup a redirect follow the steps: First,…

Continue ReadingHow to set up a redirect for your website in cPanel

How to remove .php, .html extensions with .htaccess

  • Post author:Editorial Staff
  • Post published:April 5, 2017
  • Post category:Server/SEO
  • Post comments:44 Comments

Many times you will want to have user-friendly URLs on your site. Instead of https://www.example.com/index.html you will want to have https://www.example.com/index . The second URL looks much better. Also, from the SEO point of view is better to don't use…

Continue ReadingHow to remove .php, .html extensions with .htaccess

How to force www or non-www URLs for your domain via .htaccess

  • Post author:Editorial Staff
  • Post published:April 5, 2017
  • Post category:cPanel/Server
  • Post comments:0 Comments

To redirect URLs on your site you can use the .htaccess files. We will show you below how to redirect non-www URLs to www URLs and vice versa.To see more info on how to edit .htaccess files via cPanel please…

Continue ReadingHow to force www or non-www URLs for your domain via .htaccess
  • Go to the previous page
  • 1
  • 2
  • 3
  • Go to the next page

Search Knowledge Base

Press Escape to close the search panel.

Recent KB Posts

  • How to fix Dolibarr configuration file warning message April 18, 2022
  • Manual installation of IceHrm April 17, 2022
  • How to install PEAR packages in DirectAdmin April 16, 2022
  • How to backup/restore RoundCube settings in DA March 11, 2022
  • How to add email accounts from command line March 11, 2022
  • How to revert WordPress to a previous version March 8, 2022
  • How to disable access to http://[ip or hostname]/~username March 8, 2022
  • How to generate a local Lighthouse Report March 7, 2022
  • How to disable ping command (ICMP echo) March 7, 2022
  • How to fix “Background and foreground colors do not have a sufficient contrast ratio” message February 22, 2022
  • How to disable malicious PHP functions in DirectAdmin February 22, 2022
  • How to check directives for all installed PHP versions February 21, 2022
  • How to upgrade your SuiteCRM installation February 21, 2022
  • How to disable da-popb4smtp February 2, 2022
  • How to enable RBL(real-time blacklists) in Exim February 2, 2022

KB Categories

  • CentOS Web Panel
  • cPanel
  • DirectAdmin
  • Internet
  • Linux
  • PHP
  • PlotHost
  • SEO
  • Server
  • SQL
  • VestaCP
  • WHM
  • Windows
  • WordPress

Hosting Services

  • Shared Hosting
  • Reseller Hosting
  • Application Hosting
  • DokuWiki Hosting

Local Site Pages

  • Privacy Policy
  • Acceptable User Policy
  • Terms of Service
  • Moodle Hosting

About Us

  • About Us
  • Our Hosting Awards
  • Our Partners
  • Web Hosting Knowledge Base

Contact Info

  • Sales Questions
  • Email:sales@plothost.comOpens in your application
  • Website:Submit a ticket
Copyright ©2008-2026 PlotHost. All rights reserved.