For example, say you want to put up a coming soon page on a Drupal site and you don't want to edit the "Down for Maintenance" file, you can just quickly alter the .htaccess file.
This example involved a Drupal site where I had FTP access, but not admin access to the installation. So, the quickest option was to whip up a coming soon page, upload the file as index.html and then put up a new .htaccess file (backing up the original).
The .htaccess file should look like this:
This example involved a Drupal site where I had FTP access, but not admin access to the installation. So, the quickest option was to whip up a coming soon page, upload the file as index.html and then put up a new .htaccess file (backing up the original).
The .htaccess file should look like this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !^/index.html$ /index.html [R=302] </IfModule>
Comments
Post a Comment