Forum Moderators: coopster
I'm making a redirectpage for my place on the web.
It contains of a .htaccess-file
ErrorDocument 404 /processor2.php
So when people are trying to access a file that doesn't exist the will be redirected to processor2.php.
In the processor2.php i take the url apart and then include a file depending on the url.
For example:
[xxx.com...]
Then, when I take the url apart, I'll get one variables: game = 'cs' . I can the include the file gamestory.php and it will get the variables.
All this to get nice search-engine friendly pages.
It works fine until I get an '/' after the first variable (in this case 'cs'), then the server or PHP (?) are trying to access the file gamestory.php from the directory /cs/, which don't exist.
How can I get the server to collect the files from the main directory? Are there any header I can pass?
/grodan :)
/Grodan :)