.htaccess - htaccess redirect - allow files for construction page -


I have tried to set up an htaccess archive for all except me, it works fine ... except it That I have to write an exception for every file that wants the page under construction. This will take me some time and I'm sure there is a proper way to do this, I can not find it.

I have tried this:

  reject the order, allow all permissions of 205.97.194.334 to deny the error document 403 http://www.domain.com /page.htm & lt; Files Page HTM & gt; All & lt; / Files & gt;   

but I get an internal server error

What I have now:

  Rewrite the rewriting engine / Rewrite angle %% REMOTE_HOST}! ^ 127 \ .0 \ .0 \ .1 rewrite angle% {REQUEST_URI}! / Mypage \ .html $ rewrite rule * What can I add to allow everyone to create / build / http://www.domain.com/construct/mypage.html [R = 302, L]   

Can i #

Thankyou

Can anyone tell me why the first attempt does not work?

Edit:

OK I added it, which allowed files, however, it is only redirected when the directory has been entered. To wit. Domain.com will redirect to the creation page, but domain.com/index.php will not redirect any more

  # redirect all that are not from your IP rewrite conduit% {REMOTE_ADDR} ! 00.00. 00.00 [NC] # Rewind Condole% REQUEST_FILENAME} to be served real files! -F revolutions! Index.html $ http://subverb.net/construct/index.html [R = 307, L]  < Everyone Else  

If you want to / create / strong>, and you want any other URL to be sent to the URL when opening it:

  # If your address does not write again% {REMOTE_ADDR}! ^ 123 \ .4 \ .5 \ .6 $ #and for the construction directory / not to build the rewrite angle% {REQUEST_URI}! ^ / Create / re-edit them / constructs / index.html.html (*. *) /construct/index.html [R = 307, L] / code>   

Comments