
- You are not logged in. | Login
February 20, 2007 8:04 am
- admin
- Administrator


Discuss article: "Imitation of files and directories"
You can discuss that article here
Discussed article: "Imitation of files and directories"
March 23, 2007 3:59 pm
- Keeper
- Member


Re: Discuss article: "Imitation of files and directories"
As a matter of fact you’ve chosen the worst way for realization of a non-existing file or catalogue for this article. By this I mean things that you have written down in .htaccess There are some nicer and more elegant solutions. At this they don’t have unforeseen results (like a non-existing image). And if the think over properly, $REQUEST_URI is not a question to be discussed. It would be better to suggest some writing variants of .htaccess which would be interesting and provide some stuff for discussion.
March 26, 2007 7:25 am
- selmahyekishot
- Member


Re: Discuss article: "Imitation of files and directories"
It’s interesting what search engines will say about this supposed Errordocument? I heard that mod_rewrite of Apache can be used for it… I’d like to read about it… Thanks.
March 26, 2007 7:39 am
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
Search engines treat such addresses as the normal ones – they divide everything into 200 Ok and 404 Not Found. All the rest doesn’t matter for them. mod_rewrite is tested by me at the time.
Keeper, could you show your solutions to everyone? Maybe they are not as nice as you believe…
March 26, 2007 7:54 am
- franzkafka
- Member


Re: Discuss article: "Imitation of files and directories"
From my point of view, this method is rather convenient and gives nice addresses. But there is also a rather unpleasant moment: delivery of the existing document by Apache occurs much faster than recognition of its address by the script and assemblage that follows after it. So its usage for information sites with big visitors’ number is going to overload the server.
March 26, 2007 8:07 am
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
Sure.
It is a rather strange method. There are Apache and mod_rewrite for it so why do you keep inventing something new?
However this method is often used and even commented…
March 26, 2007 8:24 am
- Conker
- Member


Re: Discuss article: "Imitation of files and directories"
You can do without mod_rewrite by indicating documentRoot .../.../.../index.php in the local host settings. And after that you can analyze $REQUEST_URI
March 26, 2007 8:43 am
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
It is the same Errordocument. The main problem is . The runner is to compile too much if everything is collected in one place.
March 26, 2007 9:14 am
- reetesh
- Member


Re: Discuss article: "Imitation of files and directories"
The problem is following. I register Errordocument 404 all.php3 in htaccess and it crosses to that whole file on the 404 Error. And within it REQUEST_URI is equal to all.php3 instead of being equal to the virtual path 
March 26, 2007 9:33 am
- R@mzess
- Member


Re: Discuss article: "Imitation of files and directories"
How should I deal relative paths?
When I make hrc.com/consulting everything works and downloads properly, pictures are searched in hrc.com/pictures. But when I type hrc.com/consulting/ (it occurs if I cross via link) everything is performed in a similar way but paths of pictures and all the rest are built relatively to consulting directory which I don’t have as far as this virtual directories’ mechanism isn’t used by me
And I don’t know how to avoid it … 
March 26, 2007 9:37 am
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
You are to write absolute paths. I have the same problem with
March 26, 2007 9:49 am
- cplusplus
- Member


Re: Discuss article: "Imitation of files and directories"
Has anyone investigated how to transmit $QUERY_STRING within method "404"? I cannot manage it but I need it for search, for instance...
March 26, 2007 9:57 am
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
It is written quite clearly:header ("HTTP/1.0 200 Ok").
March 26, 2007 12:24 pm
- shadow122
- Member


Re: Discuss article: "Imitation of files and directories"
I’ve made redirection to the PHP-file which had something like header ("HTTP/1.0 200 Ok") in the beginning. But the problem is that this feature doesn’t function under windows and the same httpd.conf tried in Linux works properly 
I cannot realize what the matter is…
I’ve tried this all in the Netscape and it told me that beside Not Found I have 500 error as well connected with Errordocument. Then I switched off header which sends OK
For some time it worked but Internet Explorer made redirection to the file which I place and Netscape makes everything nicely as I’ve entered it (http://127.0.0.1/go/to/news). I don’t like this bug. After that I’ve thought ‘If it works without header let’s place a .html-file’ and everything repeated
I return everything and it starts working in Netscape but not in Explorer
What is the matter and how to deal with it???
March 26, 2007 12:37 pm
- steven9x
- Member


Re: Discuss article: "Imitation of files and directories"
It means that you have PHP installed as a module under Linux (perhaps it's the only possible variant) which is installed as CGI under windows. 'Separated' PHP cannot send such headers correctly. The way out is which means either to install a module or comment strings with headers (as I understand, you are testing with windows) and discomment before downloading to the server. The rest of your words is rather obscure to me...


