On Sat, November 14, 2009 6:01 pm, Philip Wigg wrote:
> Hi,
>
> Try using mod_rewrite. This configuration should work...
>
> RewriteEngine On
> RewriteCond %{REQUEST_URI} !^/park.html$
> RewriteRule (.*) /park.html [L, R]
>
> This redirects any request except park.html. Note that if park.html
> contains an image, css, or whatever, it's important to also have a
> condition to not redirect that image. For example, let's say park.html
> references an image called logo.gif in a folder called 'images', you
> could use:-
>
> RewriteEngine On
> RewriteCond %{REQUEST_URI} !^/park.html$
> RewriteCond %{REQUEST_URI} !^/images/logo.gif$
> RewriteRule (.*) /park.html [L, R]
>
> Cheers,
> Phil.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


It works great. Thanks for the help!

-JK


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to