HighDots Forums  

Redirecting site during update

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Redirecting site during update in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mgorinstein
 
Posts: n/a

Default Redirecting site during update - 06-27-2004 , 08:58 PM






Hi

I've been trying to redirect all sited request to a one page that will
communicate that the site is being updated and apologize for the inconvenience
...........

I've been trying .htaccess but it doesn't want to work?

What am I doing wrong?

Redirect / http://www.mysite.com/update.htm

Is there a better way to do it?

Thank you



Reply With Quote
  #2  
Old   
thenovice
 
Posts: n/a

Default Re: Redirecting site during update - 06-28-2004 , 02:59 AM







"mgorinstein" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi

I've been trying to redirect all sited request to a one page that will
communicate that the site is being updated and apologize for the
inconvenience
..........

I've been trying .htaccess but it doesn't want to work?

What am I doing wrong?

Redirect / http://www.mysite.com/update.htm

Is there a better way to do it?

Thank you

Forgive me for asking but is that your real url?

Terry




Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Redirecting site during update - 06-28-2004 , 10:01 AM



.oO(mgorinstein)

Quote:
I've been trying to redirect all sited request to a one page that will
communicate that the site is being updated and apologize for the inconvenience
..........

I've been trying .htaccess but it doesn't want to work?

What am I doing wrong?

Redirect / http://www.mysite.com/update.htm
Please don't use real existing URLs, use www.example.org or ~.com
instead for example URLs, they are made for this.

Anyway, you can't do this with the Redirect directive. It replaces a
part of old URLs with the given new URL, this won't work in your case
(the above will lead to an endless loop).

Quote:
Is there a better way to do it?
Try it with mod_rewrite if available. Put this in your .htaccess:

RewriteEngine on

RewriteCond %{REQUEST_URI} !update.htm$
RewriteRule .* /update.htm [R]

This rewrites and redirects all URLs except for the update page itself.
If you want the old URLs to stay in the browser's address bar remove the
[R] flag from the rewrite rule.

HTH
Micha


Reply With Quote
  #4  
Old   
mgorinstein
 
Posts: n/a

Default Re: Redirecting site during update - 06-29-2004 , 05:55 PM



RewriteEngine on

RewriteCond %{REQUEST_URI} !update.htm$
RewriteRule .* /update.htm [R]

For some reason it didn't work.
The pages requested were not displayed but in place of update.htm I got an
error 500



Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Redirecting site during update - 07-01-2004 , 11:28 AM



.oO(mgorinstein)

Quote:
RewriteEngine on

RewriteCond %{REQUEST_URI} !update.htm$
RewriteRule .* /update.htm [R]

For some reason it didn't work.
The pages requested were not displayed but in place of update.htm I got an
error 500
Do you have access to the raw logfiles? There should be more information
in the server's error log in case of internal server errors.

Micha


Reply With Quote
  #6  
Old   
mgorinstein
 
Posts: n/a

Default Re: Redirecting site during update - 07-03-2004 , 02:25 AM



Here goes the error log:

[Fri Jul 2 04:29:33 2004] error parsing access file
/ch/files5.rt/0DA/mysite.com/web//.htaccess, line 1, reason: unknown Directive
[Fri Jul 2 04:29:33 2004] Error parsing access file [Fri Jul 2 04:29:33 2004]
shpd: access to /ch/files5.rt/0DA/mysite.com/web/ failed for 65.10.xxx.xxx,
reason: client denied by server configuration from - [Fri Jul 2 04:29:42 2004]
error parsing access file /ch/files5.rt/0DA/mysite.com/web//.htaccess, line 1,
reason: unknown Directive [Fri Jul 2 04:29:42 2004] Error parsing access file
[Fri Jul 2 04:29:42 2004] shpd: access to /ch/files5.rt/0DA/mysite.com/web/
failed for 65.10.xxx.xxx, reason: client denied by server configuration from -


Reply With Quote
  #7  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Redirecting site during update - 07-04-2004 , 12:22 PM



.oO(mgorinstein)

Quote:
Here goes the error log:

[Fri Jul 2 04:29:33 2004] error parsing access file
/ch/files5.rt/0DA/mysite.com/web//.htaccess, line 1, reason: unknown Directive
Hmm, it's possible that mod_rewrite is not available. You should ask
your host.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.