Domain Redirect


#1

How do I set up a redirect so www.website.com points to another website (like say my Flickr account) and still keep www.website.com/file.html available?

I’ve tried the redirect under Manage Domains > Edit > Redirect but, after the redirect, www.website.com/file.html doesn’t work anymore.


#2

You’d have to create an index.html file so when people go your site without specifying which file, it will issue a META Refresh to your Flickr account.
http://en.wikipedia.org/wiki/Meta_refresh#Examples

So http://example.com will go to Flickr, but http://example.com/myfile.html will be served normally.

-Scott


#3

you can do this with .htaccess mod_rewrite, something like this (untested):

RewriteEngine On
RewriteRule !^/file.html$ http://www.flickr.com/etc

that should redirect anything that’s not for /file.html to http://www.flickr.com/etc.

track7 - my dream-hosted site