Rewriting* as*

Discussion in 'Installation/Configuration' started by andrewt, Jul 19, 2006.

  1. andrewt

    andrewt New Member

    Hi all,

    I don't mind if visitors to my site visit* or*, but I'd like to rewrite any urls of the former form to the latter, so that the site's URLs are "officially" of the form*.

    Is there a way, using ISPConfig's web-based interface, to achieve such URL rewriting? Or would I have to manually add, e.g.,

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.foo\.com [NC]
    RewriteRule ^/(.*)$1 [R=301,L]

    to my server's httpd.conf or the relevant .htaccess file?

    Many thanks! (My apologies if this has been address in a separate thread--I spent a while searching but didn't see a discussion.)

  2. falko

    falko Super Moderator ISPConfig Developer

    You can either put this in an .htaccess file or in the Apache Directives field of that web site in ISPConfig.
  3. andrewt

    andrewt New Member

    Oh that's great; I totally overlooked that field in ISPConfig. Quite convenient.

    Many thanks!


Share This Page