Jump to content

Redirect .com to .co.uk forbidden error


Tommy
 Share

Recommended Posts

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

$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.

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...