Tommy Posted December 28, 2016 Share Posted December 28, 2016 I am looking for some guidance on redirecting a .com domain to the .co.uk version with processwire. I have allowed all versions in site/config.php $config->httpHosts = array('mydomain.com', 'www.mydomain.com', 'mydomain.co.uk', 'www.mydomain.co.uk'); My .com domain is set to alias to the .co.uk domain with my hosting provider When I visit http://www.mydomain.com I get the following error 403 Forbidden error "You don't have permission to access / on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." I am not sure whether it is processwire that is blocking the domain or whether there is a hosting/dns issue. Am i missing a simple step ? Any guidance or help would be really appreciated. Thanks Tommy Link to comment Share on other sites More sharing options...
LostKobrakai Posted December 28, 2016 Share Posted December 28, 2016 $config->httpHosts whitelisting will not prevent processwire from rendering the page, but only $config->httpHost will not match the actual domain if it's not a whitelisted one. So the issue you're having are probably not related to processwire but rather to your domain / webserver setup. The latter can include the settings in the .htaccess of processwire. 2 Link to comment Share on other sites More sharing options...
Tommy Posted December 28, 2016 Author Share Posted December 28, 2016 Thanks LostKobrakai, I have just spoken to my hosting provider and there was a DNS issue, all fixed now. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now