[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] RedirectMatch question (Raq4)
- Subject: [cobalt-users] RedirectMatch question (Raq4)
- From: Gerard Roos <list@xxxxxxxxxxxxx>
- Date: Thu Oct 16 09:59:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
After searching a lot I give up.
I changed all pages in a site from .html to .php
I wrote an .htaccess in the root (all pages are in root directory):
RedirectMatch permanent (.*)\.html$ http://www.mysite.nl$1.php
It gives an internal server error.
Should I change anything in httpd.conf?
Thanks,
Gerard
httpd.conf:
<VirtualHost 213.19.128.220>
ServerName www. mysite.nl
ServerAdmin admin
DocumentRoot /home/sites/site7/web
ServerAlias wrakkenmuseum.nl www. mysite.nl
RewriteEngine on
RewriteCond %{HTTP_HOST} !^213.19.128.220(:80)?$
RewriteCond %{HTTP_HOST} !^www. mysite.nl(:80)?$
RewriteRule ^/(.*) http://www. mysite.nl/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site7/users/$1/web/$3
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>