Redirect problem

2 posts / 0 new
Last post
#1 Sat, 10/20/2007 - 10:46
sgtg619

Redirect problem

When I add

Redirect / http://www.oneofourchurchsites.org/

as suggested in post 7123 and try to restart apache I get error

Redirect takes two or three arguments, an optional status, then document to be redirected and destination url. The entry is as follows:

<VirtualHost 15.111.11.111:80> SuexecUserGroup "#501" "#502" ServerName server.com ServerAlias www.server.com ServerAlias lists.server.com redirect /http://www.server.com DocumentRoot /home/server/public_html ErrorLog /home/server/logs/error_log CustomLog /home/server/logs/access_log combined ScriptAlias /cgi-bin/ /home/server/cgi-bin/ ScriptAlias /awstats /home/server/cgi-bin DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/server/public_html> Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI allow from all AllowOverride All AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/server/fcgi-bin/php5.fcgi .php FCGIWrapper /home/qserver/fcgi-bin/php5.fcgi .php5 </Directory> <Directory /home/server/cgi-bin> allow from all </Directory> RemoveHandler .php RemoveHandler .php5 Alias /dav /home/server/public_html Alias /pipermail /var/lib/mailman/archives/public <Location /dav> DAV On AuthType Basic AuthName server.com AuthUserFile /home/server/etc/dav.digest.passwd Require valid-user ForceType text/plain </Location> RedirectMatch /cgi-bin/mailman/([^/])(.) https://server.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2 RedirectMatch /mailman/([^/])(.) https://server.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2 </VirtualHost>

Mon, 10/22/2007 - 08:34
NigelAves

I've had some trouble with this as well but your syntax is incorrect.

needs to look like this

redirect / http://blah.com &lt;&lt; notice the space between / and H ...

This might help you but as with most apache documentation it seems to be written in tongues!

http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect

Nigel.

Topic locked