views:

204

answers:

5

Please suggest a method other than use of .htaccess..

+1  A: 

You can do a client side redirect using an index.html and a META Refresh tag.

    <html>
        <head>
            <meta http-equiv="refresh" content="0;url=http://www.mysite.com/MyDir/MyPage.html" />
        </head>
    </html>

http://en.wikipedia.org/wiki/Meta_refresh

Robin Day
+7  A: 

It really is homework-due-day today.

Theres httpd.conf (apache) http://httpd.apache.org/docs/1.3/configuring.html

Or, forcing an "Error 301 - redirect".

Or, you could put a meta-refresh in your webpage redirecting to the new webpage. e.g.
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"&gt;

Or you could use javascript to force the redirect.

<script type="text/javascript">
window.location = "http://www.google.com/"
</script>

Then there are things like Reverse Proxy that could do what you wanted.

seanyboy
+2  A: 

Depending on the technology and/or your access to the web server there are various options. In addition to the above you could use a server side code redirect e.g. in ASP.Net

Response.Redirect("http://www.google.co.uk")

I'm sure there are PHP and various other code alternatives to perform the same action.

Charlie
A: 

Implementation-agnostic:

The following status codes can be used in a web server response:

If you don't have access to a decent web server, try the Javascript or Meta-Tag methods above.

Bonus: another implementation-specific advice, using Hunchentoot:

(redirect "http://otherhost/otherpath")
skypher
A: 

Why not do it at the Registrar level? Most registrars let you do that from their control panel.

hunter