Skip to topic | Skip to bottom
Home
You are here: TWiki > Apex Web > HostingCategory > HostingTips r2 - 03 Feb 2006 - 20:06 - JohnScott


Start of topic | Skip to actions

Redirect a Domain name to an Apex application

If you have registered a Domain and wish it to point directly to an Apex application you can make use of the Apache mod_rewrite module, for example -

<VirtualHost *>
  ServerName www.myhost.com
  ServerAlias www.myhost.com 
  RewriteEngine On
  RewriteRule ^/$ /pls/apex/f?p=136:1 [R=301]
</VirtualHost>

This will redirect any requests for www.myhost.com to application id 136 (and page 1). The [R=301] performs a redirect with code 301 which can be useful for Indexing Bots/Spiders.

-- JohnScott - 05 Dec 2005

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © 1999-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback