View Single Post
Old 04-22-2003, 01:52 AM  
mxcreep
Registered User
 
Join Date: Apr 2003
Location: Netherlands
Posts: 4
Eskimoen, I think you're right about your statement about the working .htaccess code...however aparently lots of hosts do not have a proper apache config...
In my case it seems pretty strange, other rewrite engine code works, but this does not...even more strange is that the host I run on is not a custom configured machine, but a plesk machine in a network of many plesk servers managed thru a plesk master server...normally any standard shit works on plesk managed servers...

The code solution does have another advantage, the way I use it is as follows....(this is not TTT but another script, but a look at your code shows me that it works the same in this case)...

I have one line in the in.php and out.php to check the request method and in case of a HEAD I exit the script...
But I also put a line instead of the normal include of the in.php in the index where I check the request method, if it's not a HEAD I include the in.php and otherwise I do not, so are the in and out protected against direct calls...
The index still gives back content in the case of a HEAD so if a search engine does a HEAD to check if your page has changed it will receive a normal header....the htaccess solution does not...

Grtz,

Werner
mxcreep is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote