Lars282 Posted April 19, 2014 Share Posted April 19, 2014 Hi all, Since recently, I am having a problem accessing my website without www. When accessing it without the www, it gives a 403 error most of the times (see http://www.webproxy.net/view?q=http%3A%2F%2Faglobalvillage.org%2F), while when accessing it including the www, it works fine. I had recently migrated hosting servers and the title of the 403 page seems to refer to the old hosting provider. I am pretty sure that it was working correctly for a while after migration. Unfortunately, my hosting provider could not help me so far, nor could I find anything. Any ideas what the issue might be? Could there be any references in PW config files to the old website? The rewrite base in the htaccess is not being used. Thanks a lot in advance Lars Link to comment Share on other sites More sharing options...
clsource Posted April 19, 2014 Share Posted April 19, 2014 Try forcing the use of WWW in the htaccess http://stackoverflow.com/questions/4916222/htaccess-how-to-force-www-in-a-generic-way Link to comment Share on other sites More sharing options...
Lars282 Posted April 19, 2014 Author Share Posted April 19, 2014 I had already tried enabling the "optional" part in the htaccess file to always use www, but it also did not seem to consistently solve the issue as sometimes it would not redirect. I would prefer not to use the www but rather try to fix the underlying issue of why it doesn't work without the www... Link to comment Share on other sites More sharing options...
clsource Posted April 19, 2014 Share Posted April 19, 2014 (edited) May be you are having problems with the DNS. www is just a subdomain. here's some website http://www.awebguy.com/2011/02/seo-tip-www-or-no-www/ Edited April 19, 2014 by clsource Link to comment Share on other sites More sharing options...
Lars282 Posted April 19, 2014 Author Share Posted April 19, 2014 Yes ... that is why we only want to use the url without www. If something is wrong with the DNS, how can it be though that the domain works without www but points to the wrong IP if www is used? In the DNS settings, we have both domain and domain with www pointing to the same domain using an A record. I had already asked my provider, if something could be wrong with these settings, but they apparently did not find anything. Thanks for your help! Lars Link to comment Share on other sites More sharing options...
clsource Posted April 19, 2014 Share Posted April 19, 2014 One last thing you could try using header redirect inside index.php http://stackoverflow.com/questions/7467330/php-headerlocation-force-url-change-in-address-bar 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