httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Webmaster <eag...@chatministries.org>
Subject Re: [users@httpd] Redirect question
Date Mon, 29 Sep 2003 23:56:37 GMT
You could create an index.html file which just contains the following...
<head>
<META HTTP-EQUIV="refresh"
CONTENT="1;URL=http://www.foo.com/index.php">
</head>

I think that should redirect from index.html to index.php because it will
redirect from one url to another


Richard Ashton
Adelaide, Australia


At 02:17 30-09-03 +0300, you wrote:
>Free Grafton wrote:
>> Have you tried writing a line for ?DirectoryIndex? in the virtual host 
>> line in your httpd.conf file such as:
>> 
>> <VirtualHost xx.xx.xx.xx>
>> ServerName yourdomain.com
>> Serveralias www.yourdomain.com
>> DirectoryIndex index.php
>> DocumentRoot /home/www/yourdomain.com
>> TransferLog logs/yourdomain.com-transfer
>> ErrorLog logs/yourdomain.com-error
>> </Virtualhost>
>> 
>> This should force any requests coming to this virtual domain to look 
>> only for index.php
>
>It might not, if the request is with the file index.html like it is 
>mentioned in the question.
>
>> 
>> On 9/29/03 2:32 PM, "Jason Lieurance" <jason@vipersystems.biz>  wrote:
>> 
>>     Hello,
>> 
>>     Using apache 1.3.27
>> 
>>     We have a virtual domain that we've taken over and keep getting
>>     requests for
>>     index.html but its now index.php. I tried to setup a redirect like so:
>
>You may make the file index.html as a link to index.php.
>
>>     RedirectPermanent /index.html http://www.virtualdomain.com
>> 
>>     and
>> 
>>     RedirectPermanent index.html http://www.virtualdomain.com/
>> 
>>     without success.
>> 
>>     Also we would like to stop another virtual domain that they edit the
>>     content
>>     themselves from using php.
>
>Then you can take out the virtual host block from your configuration file.
>
>Best
>
>Bao
>
>>     Any help is greatly appreciated.
>> 
>> 
>> 
>> Free Grafton
>> Customer Service
>> Church Community Builder, Inc.
>> http://www.churchcommunitybuilder.com
>> 866-242-1199 ext. 600 (toll free)
>> 719-623-0300 (fax)
>> 
>
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message