bogocles
07-22-2008, 04:55 PM
Is there a server setting that will direct all domain traffic to a specific file no matter what the url is?
For instance, here is our reference page:
http://www.my-domain.com/index.php
Obviously anyone typing in the above URL will be taken to index.php at the domain address. Now let's say that this particular site has a news page, which is dynamically generated by index.php, so its address would look like:
http://www.my-domain.com/index.php?page=news
Everything looks good so far. However, lets say that the link to the news page from index.php needs to point to:
http://www.my-domain.com/news/
... But there really isn't a /news/ directory anywhere. The news page is still dynamically generated by index.php.
Is this possible with server settings?
Put another way, I want all http requests to /www.my-domain.com/, no matter for what file or folder, to be intercepted by index.php, where the URL will be parsed and the response html will be conditionally generated based on whats after the '.com/'.
Feel free to ask for an elaboration or a clarification of this question. I know it might be a tad confusing.
For instance, here is our reference page:
http://www.my-domain.com/index.php
Obviously anyone typing in the above URL will be taken to index.php at the domain address. Now let's say that this particular site has a news page, which is dynamically generated by index.php, so its address would look like:
http://www.my-domain.com/index.php?page=news
Everything looks good so far. However, lets say that the link to the news page from index.php needs to point to:
http://www.my-domain.com/news/
... But there really isn't a /news/ directory anywhere. The news page is still dynamically generated by index.php.
Is this possible with server settings?
Put another way, I want all http requests to /www.my-domain.com/, no matter for what file or folder, to be intercepted by index.php, where the URL will be parsed and the response html will be conditionally generated based on whats after the '.com/'.
Feel free to ask for an elaboration or a clarification of this question. I know it might be a tad confusing.