Redirect problem

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

Redirect problem

When I add

Redirect /

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> SuexecUserGroup "#501" "#502" ServerName ServerAlias ServerAlias redirect / 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 AuthUserFile /home/server/etc/dav.digest.passwd Require valid-user ForceType text/plain </Location> RedirectMatch /cgi-bin/mailman/([^/])(.)$1.cgi$2 RedirectMatch /mailman/([^/])(.)$1.cgi$2 </VirtualHost>

Mon, 10/22/2007 - 08:34

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

needs to look like this

redirect / &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!


Topic locked