Re: Apache odd behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/alfa/bravo/charlie/delta<http://mysite.com/index.php/alfa/bravo/charlie/delta>as
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.

Tim-Hinnerk Heuer

http://www.ihostnz.com
Mike Ditka  - "If God had wanted man to play soccer, he wouldn't have given
us arms."

2009/2/16 Michael A. Peters <mpeters@xxxxxxx>

> 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
> variables.
>
> / 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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux