Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
HTTP 403 Forbidden error
Old 06-12-2008, 05:11 PM HTTP 403 Forbidden error
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
I am getting this error when I go to my site - sometimes it shows and sometimes it doesn't and I can get onto the site, but more often than not I get this error.

I have recently changed hosts and done some reading up on it and from what I understand a number of things can cause this and changing hosts is one of them - do I just wait for my ISP's servers to catch up with the change or is there anything I can do?

Any suggestions would be appreciated.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
 
Register now for full access!
Old 06-15-2008, 12:29 PM Re: HTTP 403 Forbidden error
L a r r y's Avatar
Super Talker

Posts: 100
Name: Larry K
Location: Arizona
Trades: 0
If you have just changed your nameserver assignment from pointing to the old host to the new, give it several hours to a day to propagate throughout the Internet. I had changed my host once, however, and did not see the forbidden error. Instead, I saw my site being served from the old host until the switch was made. -- When the new host's site got wiped by a bot attack, I was down for maybe 3 hours while I waited for my reassignment to the original host to once again take hold.

Otherwise, there may be an issue with regard to your account setup being different from the old.

For instance, my original host gave me a temp address of hostdomain/myusername/, which was then replaced by my example.com/ when my domain name came into force.

Over at the new host, their address scheme was hostdomain/~myusername/ and I had as I recall, to change a bunch of paths from /css/stylesheet.css to /~myusername/css/stylesheet.css, before my domain name took effect at which time I could resume with the /css/stylesheet.css approach.

All of this meant there were errant paths and resources were not where they were expected.

Assuming that you left a host using Apache and are using a new host serving on Apache, make sure you have your .htaccess set up right, so that your example.com/ will bring up your example.com/index.html (or whatever name and extension is on your start page).

Code:
DirectoryIndex index.php index.shtml index.cgi index.html
This line will make index.php your default page, and if it is not there, the first name on the list to its right, that is present, will become the default page. And if none of these names exist in your directory, then there will be either a directory listing or a 403.

I covered a lot of possibilities, and hope I shed some light.

Larry
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Old 06-15-2008, 03:43 PM Re: HTTP 403 Forbidden error
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Thanks LARRY

It looks like you were right about waiting for everything to 'catch up' as more often than not I get the new site. I have set up redirects etc in the htaccess file and that seems to have helped also.

Many thanks.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 06-15-2008, 08:00 PM Re: HTTP 403 Forbidden error
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
http://www.tech-faq.com/flush-dns.shtml try that (along with clearing your browser) and see if the problem is cleared up, also ask your ISP if they cache, if they do ask them how often their renew is set for.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Reply     « Reply to HTTP 403 Forbidden error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15699 seconds with 12 queries