Gentoo Blog

The ultimate Gentoo Blog
  • 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 domain you wish to edit

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

<Directory "/var/www/##user##/html">
Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
AllowOverride Indexes AuthConfig Limit FileInfo
</Directory>

Please change the path entry accordingly. ##user## matches all web users. You could also change the AllowOverride line to:

AllowOverride All

But this is not necessary if you are only planing on running Mod-Rewrite.

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
Categories
confixx/Plesk
Comments rss
Comments rss
Trackback
Trackback

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

Leave a Reply

Click here to cancel reply.

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

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

Links

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

Search Blog

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox