CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Apache vhosts is not dealing with ServerAlias full URL redirection (http://www.codingforums.com/showthread.php?t=262322)

crmpicco 05-23-2012 09:28 AM

Apache vhosts is not dealing with ServerAlias full URL redirection
 
I have a redirect setup at a domain level where I forward traffic from www.crmpicco.co.uk to www.crmpicco.com.

I have re-encountered an issue where I can not browse to www.crmpicco.co.uk/ibrox and have that forwarded to www.crmpicco.com/ibrox.

This is the entry from my VHosts - is there anything wrong with it and is there anywhere else that I need to check the setup to ensure Apache is configured to handle the forwarding?

I have had confirmation from the people maintaining the domain that they don't deal with anything after the first /.
PHP Code:

<VirtualHost 172.26.x.x:80>
        
DocumentRoot "/var/www/vhosts/live_crmpicco/"
        
ServerName [url]www.crmpicco.com[/url]
        
ServerAlias crmpicco.com
        ServerAlias mobile
.crmpicco.com
        ServerAlias 
[url]www.crmpicco.co.uk[/url]
        
ServerAlias crmpicco.co.uk
        ErrorLog logs
/www.crmpicco.com_error_log
        CustomLog logs
/www.crmpicco.com_access_log combined
        LogLevel warn
        
<Directory "/var/www/vhosts/live_crmpicco/cgi-bin">
                
AllowOverride All
                Options ExecCGI
                AddHandler cgi
-script   .cgi   .pl
        
</Directory>
        <
Directory "/var/www/vhosts/live_crmpicco/">
                
AllowOverride All
        allow from all
        Options 
-Indexes
        
</Directory>
</
VirtualHost

Cheers,
Picco


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.