|
Posted by Tony on 06/24/05 23:53
Tony wrote:
> Stefan Rybacki wrote:
>
>>AF wrote:
>>
>>>I am a novice to PHP, so please forgive any dumb questions, etc.
>>>
>>>I finally learned how to pass variable with php, or at least learned
>>>one way.
>>>
>>>My urls look like this
>>>
>>>http://www.domain.com/webpage.php/variable1/variable2
>>
>>It seems your configuration is weird. Normally it should look like
>>this:
>>http://www.domain.com/webpage.php?variable1=foo&variable2=bar
>
>
> I've seen that sort of setup before, and I was under the impression it was
> intentional. The way I saw it used was on a site that used a "container"
> script that called a "content" script depending on the page name passed - so
> to get www.domain.com/index.php?page=home you would enter
> www.domain.com/home
>
> I figured that was a server setting that did that - and as I said, it seemed
> intentional...
>
Tony,
It's mod rewrite:
http://httpd.apache.org/docs/mod/mod_rewrite.html
AF,
You should use absolute url's for all links, images, css files etc when
using mod rewrite.
Navigation:
[Reply to this message]
|