1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Force www access

Discussion in 'Plesk for Linux - 8.x and Older' started by OutKa5t, Jun 9, 2008.

  1. OutKa5t

    OutKa5t Guest

    0
     
  2. wsani

    wsani Silver Pleskian

    28
    40%
    Joined:
    Mar 4, 2005
    Messages:
    509
    Likes Received:
    0
    PHP re-direct:

    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );

    htaccess re-direct:

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://domain.com/$1 [r=301,nc]
     
  3. OutKa5t

    OutKa5t Guest

    0
     
    Thanks that works great (.htaccess)
     
Loading...