Symfony uses exactly this method for pretty urls. Check it out. Maybe it has
everything you want :). Have a look at symfony's .htaccess rewrite rules at
least. You have a few possibilities here: You can make ur own rewrite for
urls that contain index.php or rewrite
http://mysite.com/index.php/alfa/bravo/charlie/delta and other urls...
Or in your framework or cms or whatever have helper functions to get the
right urls for images etc. Paths like simply putting <img
src="/images/myimg.png" alt="my img" /> shouldnt be too hard either.
Mike Ditka - "If God had wanted man to play soccer, he wouldn't have given
2009/2/16 Michael A. Peters <mpet...@mac.com>
> Paul M Foster wrote:
> > I'm submitting a url like this:
> > http://mysite.com/index.php/alfa/bravo/charlie/delta
> Why would you want to do such a thing?
> If you want parameters in the filename without using get, use mod_rewrite
> and explode the page name - and use a delimiter or than a / - IE use an
> underscore, dash, upper case vs lower, etc to indicate your different
> / has a special meaning in a URL string, I don't understand the motive of
> wanting to use it as a delimiter in a filename. That calls all kinds of
> weird issues (like the one you are experiencing, which is because the
> browser has no way to know index.php is a page - and the browser resolves
> relative URL's - that's not an apache issue)
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php