Jump to content


.htaccess redirect


2 replies to this topic

#1 Hoot

    * Hooty Tooty Fruit *

  • Members
  • PipPipPipPip
  • 1,346 posts
  • Gender:Male
  • Location:Canada
  • Interests:Making Websites, Working in 3D, Playing the Drums

Posted 08 October 2006 - 04:44 PM

Hi everyone, I am closing my site until I switch hosts and I was trying to get a .htaccess redirect to work but it just wont...

here is what I have so far:
deny from all

allow from 00.00.000.00
ErrorDocument 403 http://www.raivestudios.com/error/closed.php

Hoot

#2 Hoot

    * Hooty Tooty Fruit *

  • Members
  • PipPipPipPip
  • 1,346 posts
  • Gender:Male
  • Location:Canada
  • Interests:Making Websites, Working in 3D, Playing the Drums

Posted 08 October 2006 - 08:36 PM

I tried that but for some reason my error page doesn't work it appears like this:

Quote

Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Hoot

Edited by Hoot, 08 October 2006 - 08:36 PM.


#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 09 October 2006 - 11:56 PM

The problem here is that you're making your entire site forbidden. That includes the 403 error page. So it's forbidden to see the forbidden error page... sorta ironic really.

What you want to do is make a redirect... like the topic title suggests. There are thousands of topics you can look at on how to go about that... then just use a wildcard for anything, and redirect to what ever page you want to say "we're moving."





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users