Jump to content
xisto Community

chilipie

Members
  • Content Count

    70
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by chilipie

  1. It just doesn't load. The loading icon (in Mozilla) just keeps spinning. I suppose I might have gone wrong somewhere - the original script is here.
  2. <?phpswitch($_GET['page']) { case "home"; include("index.php"); break; case "gallery"; include("gallery.php"); break; case "links"; include("links.php"); break; case "guestbook"; include("../guestbook/"); break; case "portfolio"; include("portfoilio.php"); break; case "other"; include("other.php"); break; case "about"; include("about.php"); break; case "contact"; include("contact.php"); break; case "login"; include("/private/"); break; default: include("index.php");}?> The page doesn't load when this code is in it. Weird... If anyone could help me with it I'd be really grateful !
  3. So, who wants a site where instead of getting a default "Error 404" page in that ghastly font (Times) when you type the wrong address, you get a beautiful "Error 404" page that fits with your site's layout, colour and font scheme? Well, if you do, I'm going to show you how to do it with .htaccess. --- The most commonly occuring error pages are: 400 Bad Request 401 Authorization Required 403 Forbidden 404 Page Not Found 500 Internal Server Error 503 Service Unavailable Open up a new file in your favourite text editor. Enter this: ErrorDocument 400 /400.htmErrorDocument 401 /401.htmErrorDocument 403 /403.htmErrorDocument 404 /404.htmErrorDocument 500 /500.htmErrorDocument 501 /501.htmChange "/400.htm" etc. to the server path (not URL) of the error document. Now, save this file as "htaccess.txt" and upload/FTP it to your webspace (if you want it to affect all of your directories, make sure it is in "public_html" or "www". Then rename it to ".htaccess" (remember the dot). There you go! Type in an incorrect address at your domain, and it should come up with your custom error document.
  4. I test my sites in Mozilla, IE, Firefox and Opera (PC), and then I use iCapture to see what it looks like on a Mac. I hate it when sites have been designed for a browser like IE, and they end up looking crap in a good browser like Firefox. I think developers/designers should aim to have their site working in most OS/Browsers/Screen Resoloutions.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.