Changing default / index page via htaccess
If your working on a site and would like visitors who access yoursite.com to be redirected (instantly) to a maintenance or under construction page instead?
It can be done by editing your .htaccess file to include the following code. Here’s what you have to do. Add this to your .htaccess file:
DirectoryIndex under_construction.html
This will treat “under_construction.html” as your default page instead of your “index.html” file.
Related Articles
- 24.02.11: Add site name to title Joomla (0)
- 08.04.11: Coupon Code in Order Confirmation Email - Magento (5)
- 17.05.11: Currency drop down selector in header, Magento (3)
- 14.02.11: Perl files download instead of executing / processing (fixed) (0)
- 26.07.11: Backup Incoming and Outgoing mail for your domain EXIM (0)









Comments RSS Feed





Leave a comment