<p>I have Sun webserver iws6 (iplanet 6) proxying my bea cluster.
My cluster is under /portal/yadda.
I want anyone who goes to </p>

<pre><code>http://the.domain.com/
</code></pre>

<p>to be quickly redirected to </p>

<pre><code>http://the.domain.com/portal/
</code></pre>

<p>I have and index.html that does a post and redirect, but the user sometimes sees it.
Does anyone have a better way?</p>

<p>Aaron</p>

<p>I have tried the 3 replies below. None of them worked for me. Back to the drawing board.
A</p>

[{'answer_id': 63362, 'author': 'wolak', 'author_id': 7717, 'author_profile': 'https://Stackoverflow.com/users/7717', 'pm_score': 0, 'selected': False, 'text': '<p>Does this help?\n<a href="http://docs.sun.com/source/816-5691-10/essearch.htm#25618" rel="nofollow noreferrer">http://docs.sun.com/source/816-5691-10/essearch.htm#25618</a></p>\n\n<hr>\n\n<p>To map a URL, perform the following steps:</p>\n\n<p>Open the Class Manager and select the server instance from the drop-down list.</p>\n\n<p>Choose the Content Mgmt tab.</p>\n\n<p>Click the Additional Document Directories link.\nThe web server displays the Additional Document Directories page.\n(Optional) Add another directory by entering one of the following.</p>\n\n<p>URL prefix.\nFor example: plans.\nAbsolute physical path of the directory you want the URL mapped to.\nFor example:\nC:/iPlanet/Servers/docs/marketing/plans\nClick OK.</p>\n\n<p>Click Apply.</p>\n\n<p>Edit one of the current additional directories listed by selecting one of the following:\nEdit</p>\n\n<p>Remove\nIf editing, select edit next to the listed directory you wish to change.</p>\n\n<p>Enter a new prefix using ASCII format.</p>\n\n<p>(Optional) Select a style in the Apply Style drop-down list if you want to apply a style to the directory:\nFor more information about styles, see Applying Configuration Styles.\nClick OK to add the new document directory.</p>\n\n<p>Click Apply.</p>\n\n<p>Choose Apply Changes to hard start /restart your server.</p>\n'}, {'answer_id': 63398, 'author': 'Adam Davis', 'author_id': 2915, 'author_profile': 'https://Stackoverflow.com/users/2915', 'pm_score': -1, 'selected': False, 'text': '<p>You should be able to configure the webserver to do a header redirect (301 or 302 depending on your situation) so it redirects without ever loading an HTML page.  This can be done in PHP as well:</p>\n\n<pre><code>&lt;?php\nheader("Location: http://www.example.com/"); /* Redirect browser */\n\n/* Make sure that code below does not get executed when we redirect. */\nexit;\n?&gt;\n</code></pre>\n\n<p>If you don\'t want to modify your server configuration.</p>\n\n<p>If your server uses the .htaccess file, insert a line similar to the following:</p>\n\n<pre><code>Redirect 301 /oldpage.html http://www.example.com/newpage.html\n</code></pre>\n\n<p>-Adam</p>\n'}, {'answer_id': 63575, 'author': 'Jahangir', 'author_id': 6927, 'author_profile': 'https://Stackoverflow.com/users/6927', 'pm_score': 0, 'selected': False, 'text': '<p>You could also just add the below line in the .htaccess file</p>\n\n<p>Redirect permanent /oldpage.html <a href="http://www.example.com/newpage.html" rel="nofollow noreferrer">http://www.example.com/newpage.html</a></p>\n'}]
['https://Stackoverflow.com/questions/63295', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7659/']