Discussion Locked

Virtual Pages / Scripts as Directories

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I recently began supporting a new site that uses virtual pages - or more appropriately - php scripts in the directory structure. When trying to convert the site to another server these pages/scripts do not work.
example
http://www.myserver.com/animals/mammals/dog
A mammals file exists at http://www.myserver.com/animals/
with the following code:

4 replies

by techsup

The url would actually be .../mammals/72
which would display the Dog Category.

The script continues after to retrieve the data from the Database and display the webpage.
However, I can only get it to work when I have .../mammals.php/72 in the url instead of just .../mammals/72

Thanks for the help.

by jaqui

is the server set to allow the url aliasing?

and shouldn't it be $DOCUMENT_ROOT?

but the $_SERVER and the doc root shouldn't need to be specified.
you should be able to get the include with:

by techsup

After further research, this is just an alternate method of processing Search Engine friendly URL's(url aliasing). You are correct on Document_Root as well.
Thanks

This discussion is closed to new replies.