apache - .htaccess rules to put a site offline while users are using it -
I'm writing .htaccess, to be able to update my website slowly, Preventing and redirecting users are gradually redirected, Some images in the account are in the process of rollover, CSS styles and asynp php and js calls, which are a new page from web page Need to load Without a display page can be said .
Just redirect anything for an update. Php pages will create some unwanted effects on some such pages.
So I'm fighting for days to find the right set of rules. To get the following goal put in my .htaccess. Can you give me a hand?
If the special page Special page_write to PHP (also with parameter) PDP is redirected to
If special page is called 2.php (especially with parameters) then special page 2_gnirect Php
if any other php file ( Parameter), redirect redirected.php
if specialscript.js is called redirect to specialscript_redirected.js
if redirected to any other .js Js are called redirects
and all other files have access to CSS, images, ...
... or if you have
Comments
Post a Comment