Gentoo Blog

The ultimate Gentoo Blog
  • rss
  • Home
  • About

Confixx Mod-Rewrite

Simon | September 5, 2008

To use Mod-Rewrite in Confixx for a certain vhost you must do the following

1. Log in to confixx as admin and select http special

2. Choose the customer or domian you wish to edit

3. Select advanced options an copy the following text into the provided text box

<Directory "/var/www/webxx/html">
Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
AllowOverride All
</Directory>

Please change the path and the webxx entry accordingly.

4. Create a .htaccess in the html directory

Example:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ http://www.example.com/ [L,R=301]

This rule should rewrite all non www URL’s with www.

Share on Facebook
Kategorien
confixx/Plesk
RSS Kommentare
RSS Kommentare
Trackback
Trackback

« Ubuntu 8.10 Intrepid Ibex Countdown vim activate Syntax highlighting on Debian/ Ubuntu »

Schreib einen Kommentar

Du kannst diese Tags verwenden : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • news
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Search Blog

rss RSS Kommentare valid xhtml 1.1 design by jide powered by Wordpress get firefox