NYCPHP Meetup

NYPHP.org

[nycphp-talk] One more question about Friendly URLS

Kenneth Downs ken at secdat.com
Thu Mar 8 13:34:15 EST 2007


Chris Shiflett wrote:
> Kenneth Downs wrote:
>   
>> It seems that relative links to CSS and JS all suddenly break.
>> So if you have:
>>
>> www.example.com/friendly/varname/varvalue/varname/varvalue
>>
>> and you have a link to "css/main.css", then it will not be able
>> to find the style sheet anymore.
>>     
>
> You can still use relative URLs. Just use an absolute path:
>
> /css/main.css
>   

So both are actually relative, it is more a matter of relative from 
where?  A "relative" path is relative from the complete path of the HTTP 
request, while an "absolute" path is relative only from the domain of 
the HTTP request?

> Hope that helps.
>
> Chris
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070308/18670bfa/attachment.html>


More information about the talk mailing list