|
Hey there,
I'm not totally sure, if I'm in the correct forum. If not, please move the post as appropriate.
Is there a way to have Apache redirect requests whatever path (e.g. domain.com/path/to/whatever) to domain.com/index.php and have the index.php scipt know the path, which has originally been accessed? I'd like to have only a single index.php, but on the other hand would like to offer stable links in the form as described above. But I actually don't want to have a file in every path lying (e.g. a PHP file doing the redirection). I'd prefer if these path's are only virtual. The index.php could read the path and look it up in a db or whatever and retrieve the input according to the path.
Example:
I don't want this:
domain.com/index.php?path=/path/to/whatever
but I do want:
domain.com/path/to/whatever
which redirects to index.php in a way to let index.php now the path from which it has been redirected, but the user shall never see this. I shall be written in the browsers bar domain.com/path/to/whatever
Dou you understand what I mean? Is this possible?
Cheers,
c2k
|