-
- 354 Posts
Is it possible to tweak a htaccess file to redirect all ips to another website except one specific ip (ie mine which is static)?
What I want to do is build up a new modx site in-place while sending potential site visitors to the old site which is hosted at another domain.
There is an easier way. Create a weblink to your other site, and set it to be the "offline" document in the Configuration section, and also set the site "offline".
Logged-in Admin users will see the new site as usual, all other users will get the "offline" page and be redirected to your old site.
-
- 354 Posts
Am I correct that for this to work the redirect mechanism which is currently defined in the htaccess file needs to be removed? Instead some document based redirecting (is a redirect instruction possible in html?) will have to be created to do the redirecting after installing ModX?
PS: to the moderator(s): feel free to move this to offtopic
-
- 4,213 Posts
Quote from: MrDutchy at Aug 17, 2006, 08:29 PM
Am I correct that for this to work the redirect mechanism which is currently defined in the htaccess file needs to be removed?
No, you can use the default .htaccess, just do what susan said.
Quote from: MrDutchy at Aug 17, 2006, 08:29 PM
is a redirect instruction possible in html?
Yes, add this to <head> section:
<meta http-equiv="refresh" content="
5;url=
http://url.to.redirect.to">
Where 5 is the time in seconds to wait before doing the redirect and url is where to redirect to.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."