• What are you working on? v2
    2,000 replies, posted
Hey, guys, question: how do I specify a relative page for my 404 ErrorDocument? I have a .htaccess file with: [code] ErrorDocument 404 not_found.php [/code] However, when I get a 404, all I see is the text "not_found.php" instead of the actual web-page. However, if I specify the fully qualify name, like: [code] ErrorDocument 404 http://localhost/testsite/not_found.php [/code] Then it works fine. Any ideas? I've also tried "/not_found.php", except that returns the generic Apache 404 page with the text "[blah blah] Additionally, a 404 was encountered while attempting to handle this 404 with ErrorDocument."
You have to use the full url or a full server path to the file (I think).
[QUOTE=nullsquared;22107880]Hey, guys, question: how do I specify a relative page for my 404 ErrorDocument? I have a .htaccess file with: [code] ErrorDocument 404 not_found.php [/code] However, when I get a 404, all I see is the text "not_found.php" instead of the actual web-page. However, if I specify the fully qualify name, like: [code] ErrorDocument 404 http://localhost/testsite/not_found.php [/code] Then it works fine. Any ideas? I've also tried "/not_found.php", except that returns the generic Apache 404 page with the text "[blah blah] Additionally, a 404 was encountered while attempting to handle this 404 with ErrorDocument."[/QUOTE] Here's mine: [code] # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html # ErrorDocument 500 /500.html ErrorDocument 404 /404.html ErrorDocument 403 /403.html [/code] Just read the comments :D
Ah, thanks. Looks like I needed /testsite/not_found.php, because my site isn't at the server root.
For being amazing at programming, it looks like you need to look into a few design tutorials there null. :smile:
[QUOTE=andersonmat;22109667]For being amazing at programming, it looks like you need to look into a few design tutorials there null. :smile:[/QUOTE] Are you referring to the image I previously posted? Yeah, programming applications and developing websites are two entirely different beasts :v: Either way, I'm looking to keep the design extremely simple and to-the-point, so I don't think it looks too bad at the moment. [b]Edit:[/b] I'd appreciate if you have any specific pointers (no pun intended) on what I should add/change to make it look better.
[QUOTE=nullsquared;22109721]Are you referring to the image I previously posted? Yeah, programming applications and developing websites are two entirely different beats :v: Either way, I'm looking to keep the design extremely simple and to-the-point, so I don't think it looks too bad at the moment. [b]Edit:[/b] I'd appreciate if you have any specific pointers (no pun intended) on what I should add/change to make it look better.[/QUOTE] Try to make it look pleasant, and don't think about the layout in a strictly structural/code-oriented fashion but try to make it usable and nice. Browsing [url=http://net.tutsplus.com]nettuts[/url] and [url=http://psd.tutsplus.com]psdtuts[/url] helps me tremendously. My designs looked like that when I first started web design as well though, so not to worry. [b]Edit:[/b] Oh and I think a great solution is also getting on steam once in a while D:
I'm going a bit crazy with embedded fonts :v: check it: [url]http://owain.slashingedge.co.uk/heartbeat.htm[/url] Is Webdings a standard desktop font, btw? Or is it specifically a Windows font? It'd be interesting to see who can view that page properly.
[img]http://grab.by/grabs/a92dd02d5f354723a3a56944143b8a99.png[/img] Nope.
[QUOTE=TehDoomCat;22111198]I'm going a bit crazy with embedded fonts :v: check it: [url]http://owain.slashingedge.co.uk/heartbeat.htm[/url] Is Webdings a standard desktop font, btw? Or is it specifically a Windows font? It'd be interesting to see who can view that page properly.[/QUOTE] Lol what. I can see that in Linux.
[QUOTE=TehDoomCat;22111198]I'm going a bit crazy with embedded fonts :v: check it: [url]http://owain.slashingedge.co.uk/heartbeat.htm[/url] Is Webdings a standard desktop font, btw? Or is it specifically a Windows font? It'd be interesting to see who can view that page properly.[/QUOTE] you could upload webdings to your server and use @font-face
[QUOTE=:awesome:;22111620]you could upload webdings to your server and use @font-face[/QUOTE] That's illegal mang
maybe just make a font with hearts for letters i dont know :saddowns:
Just use an SVG for a heart. If a browser supports embedded fonts, it'll probably support SVGs.
[QUOTE=Almost Dawn;22107239]Cheap. Also Cosmic Duck, I know some facepunchers that made their own url shortening services for use with their applications, like [url=http://ahb.me]turb (ahb.me)[/url] (even though his isn't open for public use) and [url=http://vdh.im]vladh (vdh.im)[/url] (his has an API).[/QUOTE] It is for public use, you just have to be logged in to recieve a shortlink when uploading. The [URL=http://anyhub.net/apidoc]AnyHub API[/URL] always gives out shortlink as well.
A little update on my Newrur thing: (Click the palette) [url]http://errur.com/newrur/final/[/url]
[QUOTE=turb_;22111879]That's illegal mang[/QUOTE] [url=http://www.microsoft.com/typography/web/fonts/webdings/default.htm]Page for it[/url] on Microsoft's website says you can embed it with font face. Page is sort of old though..:P
Does this look better? :haw: [img]http://img689.imageshack.us/img689/9216/newhomepage.png[/img]
[QUOTE=ifaux;22112115][url=http://www.microsoft.com/typography/web/fonts/webdings/default.htm]Page for it[/url] on Microsoft's website says you can embed it with font face. Page is sort of old though..:P[/QUOTE] It says you can use the font, but it doesn't license you to distribute it.
[QUOTE=turb_;22112065]It is for public use, you just have to be logged in to recieve a shortlink when uploading. The [URL=http://anyhub.net/apidoc]AnyHub API[/URL] always gives out shortlink as well.[/QUOTE] Yeah but it's only public for anyhub urls.
Oh yeah, of course. I didn't want to compete with the mainstream services, but provide something specific just for my service.
[QUOTE=arienh4;22112038]Just use an SVG for a heart. If a browser supports embedded fonts, it'll probably support SVGs.[/QUOTE] Yeah. I'll probably just go for a .png image so I can make it more of a stylized heart, if I do carry on with my design. Was just trying out embedded fonts. They're neat, I must use them more often...
[QUOTE=Darkimmortal;22100516]It used to on mine until I went through my PHP log file and fixed every fatal error. Now its uptime is measured in weeks.[/QUOTE] Too lazy to do that. The ruby script I modded does the job. :v:
null, that doesn't look terrible although I think that you could do better with a general design. v:v:v
[QUOTE=nullsquared;22112215]Does this look better? :haw: [img]http://img689.imageshack.us/img689/9216/newhomepage.png[/img][/QUOTE] A bit, but you should try to visit something like [url]http://net.tutsplus.com[/url] or [url]http://webcreme.com[/url] or something and look for a design that you like and try to recreate it.
I think with me being not too good with design [url]http://johnduhart.me/[/url] isn't all that bad.
[QUOTE=compwhizii;22113601]I think with me being not too good with design [url]http://johnduhart.me/[/url] isn't all that bad.[/QUOTE] It's pretty nice.
Working on porting fuzzfriends over to Mono on Linux. It's proving to be a bitch because I've heavily abused Windows' case insensitivity in filenames. I'm basically just using every little part of it looking for Server Errors that I can fix
[QUOTE=Almost Dawn;22113643]It's pretty nice.[/QUOTE] Thanks.
[QUOTE=andersonmat;22112866]null, that doesn't look terrible although I think that you could do better with a general design. v:v:v[/QUOTE] But, I'm going for an extremely simple, computer-orientated design. I don't want it to look like the general super-flashy-in-your-face designs you see everywhere.
Sorry, you need to Log In to post a reply to this thread.