- With a text editor, open the httpd.conf file from the /opt/IBM/HTTPServer/conf directory.
- Uncomment the following line if it is commented out:
LoadModule rewrite_module modules/mod_rewrite.so
- Add a rewrite rule for HTTP to the file:
RewriteEngine on
RewriteRule ^/$ http://<host_name>/<feature> [R,L]
Where <host_name> is the URL that users will access, and <feature> is the context path of the default feature, including Activities, Blogs, Communities, Dogear, Home page, or Profiles. For example:
RewriteEngine on
RewriteRule ^/$ http://connections.acme.com/homepage [R,L]
- Add a rewrite rule for HTTPS and place it within the SSL VirtualHost section of the httpd.conf file. For more information, see the Configuring the IBM HTTP Server for SSL topic.
RewriteEngine on
RewriteRule ^/$ https://<host_name>/<feature> [R,L]
Where <host_name> is the URL that users will access, and <feature> is the context path of the default feature.
- Save and close the file.
- Restart the IBM HTTP Server
Taken from: http://tinyurl.com/3xwge74